﻿@{
    ViewBag.Title = "病历信息";
    Layout = "~/Areas/PR/Views/Shared/_Layout.cshtml";
}

@section scripts{
    <script type="text/javascript">

    //#region 通用函数及变量

    //#region 变量

    //#region 病历部分
    var Name;  //姓名
    var Sex; //性别
    var Age; //年龄
    var AgeType; //年龄类型
    var ForHelpPhone; //呼救电话
    var LinkPerson; //联系人
    var ContactTelephone; //联系电话
    var AlarmTypeCode; //事件类型编码
    var AlarmType; //事件类型
    var Area;//区域
    var XCoordinate; //X坐标
    var YCoordinate; //Y坐标
    var AlarmReason; //主诉
    var AlarmReasonP;//主诉（判断必填项用）
    var LocalAddress; //现场地点
    var SendAddress; //送往地点
    var StationCode;//出车分站编码
    var Station; //出车分站
    var AmbulanceCode;//车辆编码
    var FirstAcceptTime;//20160106首次受理时刻
    var TelephoneRingingTime; //电话振铃时刻
    var GenerationTaskTime; //生成任务时刻(派车时刻)
    var DrivingTime; //出车时间
    var ArriveSceneTime; //到达现场
    var LeaveSceneTime; //离开现场
    var ArriveDestinationTime; //到达目的地
    var CompleteTime; //完成时刻
    var BackTime; //返回站中时刻
    var Driver; //随车驾驶员
    var DoctorAndNurse;//急救医护
    var TeachingPractice;//带教实习
    var Doctor; //急救医生
    var StretcherBearers; //担架员-I
    var StretcherBearersII; //担架员-II
    var Nurse; //护士
    var FirstAider; //急救员

    var EmptyReason;//空车原因
    var EmptyReasonSupplement;//补充说明
    var IsSeePeople; //是否见到病人
    var ProvideMedicalHistoryPeople;//供史人
    var DiseasesClassification;//病种分类
    var DiseasesClassificationSupplement;//病种分类补充
    var HistoryOfPresentIllness;//现病史
    var HistoryOfPresentIllnessP;//现病史（判断必填项用）
    var SaveOneselfMeasures;//自救措施20150917
    var SaveOneselfMeasuresSupplement;//自救措施补充说明20150917
    var PastMedicalHistory;//既往病史
    var PastMedicalHistorySupplement;//既往病史的补充说明
    var DischargeDiagnosis;//转出院诊断
    var HospitalMeasuresTreatment;//院内主要治疗措施
    var AtPresentPatientSymptom;//目前患者症状
    var tiJianChoose;//体检选择
    var TChoose;//T选择
    var tT;//
    var PChoose;//P选择
    var tP;//
    var RChoose;//R选择
    var tR;//
    var BP;//
    var tBP1;//
    var tBP2;//
    var kPa1;//
    var kPa2;//
    var Consciousness;//意识
    var Pupilla;//瞳孔
    var PupillaSupplement;//瞳孔补充描述
    var LightReflex;//对光反射
    var LightReflexSupplement;//对光反射补充描述
    var Skin;//皮肤
    var SkinSupplement;//皮肤补充描述
    var Head;//头部
    var HeadSupplement;// 头部补充描述
    var Neck;//颈部
    var NeckSupplement;// 颈部补充描述
    var Chest;//胸部
    var ChestSupplement;//胸部补充描述
    var ChestExtrusionTest;//胸廓挤压试验
    var Lungs;//肺脏
    var TwoLungBreathingSound;//肺脏--两肺呼吸音
    var LeftLung;//左肺
    var RightLung;//右肺
    var LungsSupplement;//肺脏补充描述
    var Heart;// 心脏
    var HeartRate;// 心率
    var HeartRhythm;// 心律
    var HeartMurmur;// 杂音
    var HeartSupplement;//心脏补充描述
    var Abdomen;//腹部
    var AbdomenSupplement;//腹部补充描述
    var Spine;// 脊柱
    var SpineSupplement;//脊柱补充描述
    var Limbs;//四肢
    var LimbsSupplement;//四肢补充描述
    var PelvicExtrusionTest;// 骨盆挤压试验

    var NervousSystem;// 神经系统
    var NervousSystemSupplement;//神经系统补充描述
    var NervousSystemFace;//神经系统-面部
    var NervousSystemSpeech;//神经系统-言语
    var LeftUpperExtremity;//神经系统（肌力--左上肢
    var LeftLowerExtremity;//神经系统（肌力--左下肢
    var RightUpperLimb;//神经系统（肌力--右上肢
    var RightLowerLimb;//神经系统（肌力--右下肢
    var MuscularTension;//神经系统--肌张力（20150612）
    var BabinskiSign;//神经系统--巴氏征
    var ObstetricExamination;//产科检查选择
    var GongGaoCartilagoEnsiformis;//产科检查（宫高：剑突下）
    var GongGaoNavel;//产科检查（宫高：脐上）
    var GongGaoSuprapubic;//产科检查（宫高：耻骨上）
    var GongGaoBelowUmbilicus;//产科检查（宫高：脐下）
    var ObstetricExaminationSupplement;//产科检查补充描述
    var PhysicalExaminationSupplement;//体检补充描述20150917

    var OtherNecessaryRecord;// 其他必要记录

    var GCSScore;//GCS评分累计评分
    var OpenReaction;//睁眼反应
    var OpenReactionScore;//睁眼反应分数
    var LanguageReaction;// 语言反应
    var LanguageReactionScore;// 语言反应分数
    var MotionResponse;// 运动反应
    var MotionResponseScore;// 运动反应分数

    var TIScore;//创伤指数(TI)评分累计评分
    var Position;// 部位
    var PositionScore;// 部位--分数
    var DamageWay;// 损伤方式
    var DamageWayScore;// 损伤方式--分数
    var CirculationChange;// 循环改变
    var CirculationChangeScore;// 循环改变--分数
    var BreathingChange;// 呼吸改变
    var BreathingChangeScore;// 呼吸改变--分数
    var ConsciousnessChange;// 意识改变
    var ConsciousnessChangeScore;// 意识改变--分数

    var ApgarScore;//Apgar评分累计评分
    var HeartRatePerMinute;// 每分钟心率
    var HeartRatePerMinuteScore;// 每分钟心率--分数
    var Breathing;// 呼吸
    var BreathingScore;// 呼吸--分数
    var MuscleTension;// 肌张力
    var MuscleTensionScore;// 肌张力--分数
    var LaryngealReflex;// 喉反射
    var LaryngealReflexScore;// 喉反射--分数
    var SkinColor;// 皮肤颜色
    var SkinColorScore;// 皮肤颜色--分数

    var ECGSelect;//心电图印象选择
    var ECGImpression;//心电图印象
    var ECGImpressionCodes;//心电图印象编码串
    var ECGImpressionSupplement;//心电图印象其他
    var ECGImpressionRetestI;//心电图印象--复查1
    var ECGImpressionRetestICodes;//心电图印象--复查1编码串
    var ECGImpressionRetestISupplement;//心电图印象--复查1其他
    var ECGImpressionRetestII;//心电图印象--复查2
    var ECGImpressionRetestIICodes;//心电图印象--复查2编码串
    var ECGImpressionRetestIISupplement;//心电图印象--复查2其他
    var ECGImpressionDoubt;//心电图印象--疑问20150917
    var ECGImpressionRetestIDoubt;//心电图印象复查1--疑问20150917
    var ECGImpressionRetestIIDoubt;//心电图印象复查2--疑问20150917
    var TwelveDaoLian;//12导联--20151124

    var ECGImpressionFirstTime; //2022-10-11 zch 首次心电图时间 //add2024-08-23 plq 移植
    var ECGImpressionLastTime; //2022-10-11 zch 末次心电图时间
    var NotSufficientRevivingReason; //2024-03-04 zch
    var NotSufficientRevivingReasonSupplement; //2024-03-04 zch

    var BloodSugarSelect;// 血糖选择
    var BloodSugar;
    var BloodSugarRetestI;//血糖复查1
    var BloodSugarRetestII;//血糖复查2

    var BloodOxygenSelect;//血氧饱和度选择
    var BloodOxygen;
    var BloodOxygenRetestI;//血氧饱和度复查1
    var BloodOxygenRetestII;//血氧饱和度复查2

    var SymptomPendingInvestigation;//初步印象--症状待查
    var SymptomPendingInvestigationCodes;//初步印象--症状待查编码串
    var SymptomPendingInvestigationSupplement;//初步印象--症状待查其他
    var PrimaryDiagnoses;// 初步印象
    var PrimaryDiagnosesCodes;// 初步印象编码串
    var PrimaryDiagnosesSupplement;// 初步印象其他
    var FirstImpressionDoubt;//初步印象--疑问20150917

    var IFRefuseTreatment;//是否拒绝治疗(救治记录)
    var RescueType;//抢救类型
    var MeasureInformation;//诊疗操作 add2022-08-17 plq--闵行移植

    var CPRSelect;// 心肺复苏选择-(对应数据库CPRIFSuccess)
    var AttackPlace;//发病地点20150917
    var Witness;// 目击者
    var CarToBeforeCPR;// 车到前CPR
    var CarToBeforeDefibrillation;// 车到前除颤
    var CardiacArrestReason;// 心脏骤停可能原因
    var CardiacArrestReasonSupplement;//心脏骤停补充说明
    var BeforeResuscitationECGDiagnosis;// 复苏前心电图诊断
    var BeforeResuscitationSaO2;// 复苏前SaO2
    var AfterResuscitationBP;// 复苏后BP
    var AfterResuscitationSaO2;// 复苏后SaO2
    var PulsationAppearTime;// 颈A搏动出现时间
    var BreatheAppearTime;// 自主呼吸出现时间
    var AfterResuscitationECGDiagnosis;// 复苏后心电图诊断
    var IFAdmittedToHospital;// 是否入院
    var IFLeaveHospital;// 是否出院
    var LeaveHospitalDate;// 复苏后出院日期
    var LeaveHospitalCPC;// 出院时CPC数值
    var VerifyResults;// 急救科核实结果
    var VerifyPerson;// 核实人员
    var VerifyTime;// 核实时间
    var RegistrationPerson;//登记人(可能页面不需要)
    var RegistrationTime;//登记时间(可能页面不需要)
    var DoctorFollowUp;// 医生随访(回访)
    var ArriveSceneTime;//到达现场时间20150917
    var ChestCompression;//胸外按压20150917
    var StartChestCompressionTime;//开始胸外按压时间20150917
    var Defibrillation;//除颤20150917
    var FirstDefibrillationTime;//首次除颤时间20150917
    var IntervalTime;//间隔时间20150917
    var DoctorFollowUpReason;//回访原因20150917
    var WitnessHeartbeatBreatheArrest;//目击下心跳呼吸骤停20160107

    var IllState;// 病情分类
    var IllStateReport;// 病情预报
    var DeathCase;// 死亡病例--20160328修改为“呼吸心跳停止”
    var DeathCertificate;// 死亡证明
    var FirstAidEffect;// 急救效果
    var MajorEmergencies;// 重大突发事件
    var DiseaseCooperation;// 病家合作度
    var DiseaseNotCooperationSupplement;// 病家不合作补充说明

    var CenterIFAuditForXFFS;// 心肺复苏审核--中心审核
    var CenterAuditPerson;//审核人
    var CenterAuditTime;//审核时间
    var CenterAuditResult;//审核结果
    var CenterNotThroughReason;// 审核不通过原因

    var SubmitLogo;//提交标志
    var SubCenterIFSpotChecks;// 分中心是否抽查
    var SubCenterPerson;//分中心抽查人
    var SubCenterSpotChecksTime;//分中心抽查时间
    var SubCenterSpotChecksResult;//分中心抽查结果
    var SubCenterSpotChecksUnqualifiedReason;//分中心抽查结果不合格原因-20151124
    var SubCenterSpotChecksRmark;// 分中心抽查备注

    var CenterIFSpotChecks;// 中心抽查
    var CenterSpotChecksPerson;//中心抽查人
    var CenterSpotChecksTime;//中心抽查时间
    var CenterSpotChecksResult;//中心抽查结果
    var CenterSpotChecksUnqualifiedReason;//中心抽查结果不合格原因-20151124
    var CenterSpotChecksRmark;// 中心抽查备注
    var NoticeAttendNursingLectures;//通知参加本月病历小讲课-20151124
    var ActualAttendNursingLectures;//实际参加本月病历小讲课-20151124
    var FillNoticeAttendNursingLectures;//补通知参加本月病历小讲课-20151124
    var FillActualAttendNursingLectures;//补实际参加本月病历小讲课-20151124
    var MedicalHistoryWritingProgress;//病史书写进步-20151124
    var NoticeAttendTime;//通知参加小讲课填写时间-20151208
    var NoticeAttendPerson;//通知参加小讲课填写人-20151208
    var ActualAttendTime;//实际参加小讲课填写时间-20151208
    var ActualAttendPerson;//实际参加小讲课填写人-20151208
    var FillNoticeAttendTime;//补通知参加小讲课填写时间-20151208
    var FillNoticeAttendPerson;//补通知参加小讲课填写人-20151208
    var FillActualAttendTime;//补实际参加小讲课填写时间-20151208
    var FillActualAttendPerson;//补实际参加小讲课填写人-20151208
    var Fill2NoticeAttendNursingLectures;//补2通知参加本月病历小讲课-20151209
    var Fill2NoticeAttendTime;//补2通知参加小讲课填写时间-20151209
    var Fill2NoticeAttendPerson;//补2通知参加小讲课填写人-20151209
    var Fill2ActualAttendNursingLectures;//补2实际参加本月病历小讲课-20151209
    var Fill2ActualAttendTime;//补2实际参加小讲课填写时间-20151209
    var Fill2ActualAttendPerson;//补2实际参加小讲课填写人-20151209
    var FormedConsent;//告知签字-20151214
    var DrivingTimeSupplement;//出车时间补充说明-20160115
    var ArriveSceneTimeSupplement;//到达现场补充说明-20160115
    var LeaveSceneTimeSupplement;//离开现场补充说明-20160115
    var ArriveDestinationTimeSupplement;//到达时间补充说明-20160115
    var CenterFollowUp;//中心回访-20160115
    var CenterFollowUpSupplement;//中心回访补充说明-20160115
    var UpdateFormCompletePerson;//自动归档后，退回的操作人员姓名-20160115
    var UpdateFormCompleteTime;//自动归档后，退回的操作时间-20160115

    var Remark;//备注20150703

    var state; //页面的编辑状态
    var TaskCode; //任务编码
    var PatientOrder; //病历序号
    var CallOrder;//来电序号,取任务表的“用户流水号”
    var OriginalTaskType;//原任务类型
    var MedicalStateCode;//病历填写状态
    var BeginFillPatientTime;//开始填写病历时间
    var tip; //病历未填项的错误信息
    var Alert = "";
    var AuditCPRAlert = "";
    var SpotChecksAlert = "";
    var AgentWorkID = "";
    var AgentName = "";//20151218病历填写人员姓名

    var MedicalGuide;//远程医学指导 add2023-02-10 plq
    //#endregion

    //#region 弹出信息窗口
    /*
    title:标题
    msgString:提示信息
    msgType:信息类型 [error,info,question,warning]
    */
    function msgShow(title, msgString, msgType) {
        $.messager.alert(title, msgString, msgType);
    }
    //#endregion

    //#region 判断非空
    function isNullOrEmpty(strVal) {
        if (strVal == '' || strVal == null || strVal == undefined || strVal == 'undefined' || strVal == 'null' || strVal == '--请选择--' || strVal == '请选择') {
            return true;
        } else {
            return false;
        }
    }
    //#endregion

    //#region 判断非空，返回字符串。
    function isNullOrEmptyString(strVal) {
        if (strVal == '' || strVal == null || strVal == undefined || strVal == 'undefined' || strVal == 'null' || strVal == '--请选择--' || strVal == '请选择') {
            return "";
        } else {
            return strVal;
        }
    }
    //#endregion

    //#region 判断非空，返回Int
    function isNullOrEmptyInt(strVal) {
        if (strVal == '' || strVal == null || strVal == undefined || strVal == 'undefined' || strVal == 'null' || strVal == '--请选择--') {
            return 0;
        } else {
            return strVal;
        }
    }
    //#endregion

    //#region 禁用Backspace键
    //window.onload = function () {
    //    document.getElementsByTagName("body")[0].onkeydown = function () {

    //        //获取事件对象
    //        var elem = event.relatedTarget || event.srcElement || event.target || event.currentTarget;

    //        if (event.keyCode == 8) {//判断按键为backSpace键

    //            //获取按键按下时光标做指向的element
    //            var elem = event.srcElement || event.currentTarget;

    //            //判断是否需要阻止按下键盘的事件默认传递
    //            var name = elem.nodeName;

    //            if (name != 'INPUT' && name != 'TEXTAREA') {
    //                return StopBackspace(event);
    //            }
    //            var type_e = elem.type.toUpperCase();
    //            if (name == 'INPUT' && (type_e != 'TEXT' && type_e != 'TEXTAREA' && type_e != 'PASSWORD' && type_e != 'FILE')) {
    //                return StopBackspace(event);
    //            }
    //            if (name == 'INPUT' && (elem.readOnly == true || elem.disabled == true)) {
    //                return StopBackspace(event);
    //            }
    //        }
    //    }
    //}
    //function StopBackspace(e) {
    //    if (e.returnValue) {
    //        e.returnValue = false;
    //    }
    //    if (e.preventDefault) {
    //        e.preventDefault();
    //    }

    //    return false;
    //}
    //#endregion


    //#region 为Combobox增加--请选择--
    function EUIcombobox(jqS, o) {
        $.ajax({
            type: "POST",
            async: false,
            url: o.url,
            dataType: "JSON",
            success: function (data1, textStatus, jqXHR) {
                o.data = o.OneOption.concat(data1);
                delete o.url;
                delete o.OneOption;
                $(jqS).combobox(o);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert("获取字典数据失败！可能是已经超时，请重新登录！");
            }
        });
    }
    //#endregion

    //#region 遍历数组，组成带","号的字符串
    /*
    Array:数组名称
    */
    function SplitArray(Array) {
        var ArrayValue = '';
        if (Array.length > 1) {
            $.each(Array, function (key, val) {
                ArrayValue += val + ",";
            });
        } else {
            $.each(Array, function (key, val) {
                ArrayValue += val;
            });
        }
        return ArrayValue;
    }
    //#endregion


    //#region 页面加载
    $(document).ready(function () {
        $(".datebox :text").attr("readonly", "readonly");//设置时间控件只能选择，不可手动输入


        //#region 年龄单位
        $('#AgeType').combobox({
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'Age',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '岁',//默认选择
            //onLoadSuccess: function () {
            //    //var data = $(this).combobox('getData')[0];
            //    //if (data) {
            //    //$('#comb').combobox('select', '岁');
            //    //}
            //},
            onChange: function (param) {
                SelectSexAndAge();
                var AgeType = $('#AgeType').combobox('getValue'); //年龄类型
                if (AgeType == "不详" || AgeType == "新生儿") {
                    $('#Age').numberbox('disable');//禁用--
                    $('#Age').numberbox('setValue', "");
                }
                else
                    $('#Age').numberbox('enable');//启用--
            }
        });
        //#endregion

        //#region 出车分站
        EUIcombobox("#Station", {
            url: '@Url.Content("~/Medical/GetStation?code=")',
            valueField: 'ID',
            textField: 'Name',
            editable: false,
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }]
        });
        //#endregion

        //#region 送往地点--医院
        EUIcombobox("#SendAddress", {
            url: '@Url.Content("~/Medical/GetHospitalInfo/")',
            valueField: 'Name',
            textField: 'Name',
            //editable: false,
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var selectName = GetCheckBox("alarmEventType");
                var value = $('#SendAddress').combobox('getValue');
                if (value != null) {
                    //20151229value.indexOf("不送院") >= 0 ||
                    if (selectName == "空车" || value.indexOf("车到未送") >= 0) {
                        $('#tdArriveDestinationTime').css("color", "Black");
                        //$('#lblArriveDestinationTimeSupplement').css("color", "Black");//到达时间补充
                    }
                    else {
                        $('#tdArriveDestinationTime').css("color", "red");
                        //$('#lblArriveDestinationTimeSupplement').css("color", "red");//到达时间补充
                    }

                    //2024-03-14 zch //add2024-08-23 plq 移植
                    if (value.indexOf("车到不送") >= 0) {
                        var ECGImpressionFirstTimeTMP = $('#ECGImpressionFirstTime').datetimebox('getValue');
                        var ECGImpressionLastTimeTMP = $('#ECGImpressionLastTime').datetimebox('getValue');

                        var FirstTime = new Date(Date.parse(ECGImpressionFirstTimeTMP.replace(/-/g, "/")));
                        var LastTime = new Date(Date.parse(ECGImpressionLastTimeTMP.replace(/-/g, "/")));

                        //2024-03-04 zch  未充分复苏原因
                        // 计算两个日期之间的毫秒差
                        var timeDiffAbs = LastTime.getTime() - FirstTime.getTime();
                        // 将毫秒差转换为分钟
                        // const differenceInMinutes = differenceInMilliseconds / (1000 * 60);
                        var minutes = Math.floor(timeDiffAbs / (1000 * 60));
                        var seconds = Math.floor((timeDiffAbs % (1000 * 60)) / 1000);
                        if (minutes < 30 && seconds < 1800) {
                            $('#spanNotSufficientRevivingReason').css("display", "");
                            var NotSufficientRevivingReason = $('#NotSufficientRevivingReason').combobox('getValue');
                            if (NotSufficientRevivingReason == "其他") {
                                $('#spanNotSufficientRevivingReasonSupplement').css("display", "");
                            } else {
                                $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
                            }
                        } else {
                            $('#spanNotSufficientRevivingReason').css("display", "none");
                            $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
                        }

                    } else {
                        //
                        $('#spanNotSufficientRevivingReason').css("display", "none");
                        $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
                    }
                }
            }
        });
        //#endregion

        //#region 出车时间补充-20160301
        EUIcombobox("#DrivingTimeSupplement", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'TimeSupplement',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 到达现场补充-20160301
        EUIcombobox("#ArriveSceneTimeSupplement", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'TimeSupplement',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 离开现场补充-20160301
        EUIcombobox("#LeaveSceneTimeSupplement", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'TimeSupplement',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 到达时间补充-20160301
        EUIcombobox("#ArriveDestinationTimeSupplement", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'TimeSupplement',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region T
        EUIcombobox("#TChoose", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'PatientCheckTY1',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '未测',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                TChooseChange();
            }
        });
        //#endregion

        //#region P
        EUIcombobox("#PChoose", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'PatientCheckTY1',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                PChooseChange();
            }
        });
        //#endregion

        //#region R
        EUIcombobox("#RChoose", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'R',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                RChooseChange();
            }
        });
        //#endregion

        //#region BP
        EUIcombobox("#BP", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'PatientCheckTY1',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                BPChooseChange();
            }
        });
        //#endregion

        //#region 意识
        EUIcombobox("#Consciousness", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'Consciousness',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var value = $('#Consciousness').combobox('getValue');
                var tiJianChoose = isNullOrEmptyString(SplitArray(GetCheckBox("tiJianChoose"))); //体检选择
                if (value == "昏迷" && tiJianChoose != "拒查") {

                    //$('input[name=CheckBox_GCS]').attr("checked", true);//GCS评分
                    HidGCS(1);
                }
                else {
                    //$('input[name=CheckBox_GCS]').attr("checked", false);//GCS评分
                    HidGCS(0);
                }
                if (value == "昏迷" || value == "丧失") {
                    $('#spanAnimalForce').css("color", "Black");//如果“意识”选择昏迷或者丧失，肌力不为必填项
                }
                else {
                    var value = GetComboboxMultiple(isNullOrEmptyString("DiseasesClassificationSupplement"));//病种分类补充
                    var NervousSystems = isNullOrEmptyString($('#NervousSystem').combobox('getValue'));// 神经系统
                    if ((value.indexOf("脑血管意外") >= 0 || value.indexOf("短暂性脑缺血发作") >= 0 || value.indexOf("高血压脑病") >= 0) && NervousSystems != "拒查" && NervousSystems != "未查") {
                        $('#spanAnimalForce').css("color", "red");//肌力
                    }
                }
            }

        });
        //#endregion

        //#region 瞳孔
        EUIcombobox("#Pupilla", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'TongKong',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                selectPupil();//瞳孔-根据选择来判断是否显示补充描述；
            }
        });
        //#endregion

        //#region 对光反射
        EUIcombobox("#LightReflex", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'DuiGuangFanShe',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                selectLightReflex();//对光反射-根据选择来判断是否显示补充描述；
            }
        });
        //#endregion

        //#region 肺脏--两肺呼吸音
        EUIcombobox("#TwoLungBreathingSound", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'TwoLungBreathingSound',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                ColorLungsSupplement();
            }
        });
        //#endregion

        //#region 心脏
        EUIcombobox("#Heart", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'Heart',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                ColorHeart();
            }
        });
        //#endregion

        //#region 心律
        EUIcombobox("#HeartRhythm", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'HeartRhythm',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                onChangePR();//20160926
            }
        });
        //#endregion

        //#region 杂音
        EUIcombobox("#HeartMurmur", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'HeartMurmur',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 神经系统
        EUIcombobox("#NervousSystem", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'Heart',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var NervousSystems = isNullOrEmptyString($('#NervousSystem').combobox('getValue'));// 神经系统
                var DiseasesClassificationSupplement = GetComboboxMultiple(isNullOrEmptyString("DiseasesClassificationSupplement"));//病种分类补充
                if (NervousSystems == "拒查" || NervousSystems == "未查") {
                    //$('#tdNervousSystem').css("color", "Black");
                    $('#spanFaceAndSpeech').css("color", "Black");
                    $('#spanAnimalForce').css("color", "Black");
                    //$('#spanMuscularTension').css("color", "Black");

                    $('#NervousSystemFace').prop('disabled', 'disabled');//禁用--面部
                    $('#NervousSystemSpeech').prop('disabled', 'disabled');//禁用--言语
                    $('#LeftUpperExtremity').combobox('disable');//禁用--肌力左上肢
                    $('#LeftLowerExtremity').combobox('disable');//禁用--肌力左下肢
                    $('#RightUpperLimb').combobox('disable');//禁用--肌力右上肢
                    $('#RightLowerLimb').combobox('disable');//禁用--肌力右下肢
                    $('#MuscularTension').combobox('disable');//禁用--肌张力
                    $('#NervousSystemFace').val("");//清空--面部
                    $('#NervousSystemSpeech').val("");//清空--言语
                    $('#LeftUpperExtremity').combobox('select', "请选择");//
                    $('#LeftLowerExtremity').combobox('select', "请选择");//
                    $('#RightUpperLimb').combobox('select', "请选择");//
                    $('#RightLowerLimb').combobox('select', "请选择");//
                    $('#MuscularTension').combobox('select', "--请选择--");//

                    $('input[name="BabinskiSign"]').prop("disabled", "disabled");//禁用--巴氏征20150918
                    unCheckBoxAll("BabinskiSign", "");//清除所有勾选内容--巴氏征20150918

                    //20161118--增加病种分类小分类为：脑血管意外、高血压脑病、短暂性脑缺血发作，并且神经系统选择为：未查
                    if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && NervousSystems == "未查") {
                        $('#lblNervousSystemSupplement').css("color", "red");//20151117神经系统的补充说明变红必填项
                    }
                    else {
                        $('#lblNervousSystemSupplement').css("color", "Black");
                    }
                }
                else {
                    //if (NervousSystems == "") {
                    $('#NervousSystemFace').prop('disabled', '');//启用--面部
                    $('#NervousSystemSpeech').prop('disabled', '');//启用--言语
                    $('#LeftUpperExtremity').combobox('enable');//启用--肌力左上肢
                    $('#LeftLowerExtremity').combobox('enable');//启用--肌力左下肢
                    $('#RightUpperLimb').combobox('enable');//启用--肌力右上肢
                    $('#RightLowerLimb').combobox('enable');//启用--肌力右下肢
                    $('#MuscularTension').combobox('enable');//启用--肌张力
                    $('input[name="BabinskiSign"]').prop("disabled", "");//启用--巴氏征20150918
                    //}
                    //else {
                    //    $('#NervousSystemFace').prop('disabled', 'disabled');//禁用--面部
                    //    $('#NervousSystemSpeech').prop('disabled', 'disabled');//禁用--言语
                    //    $('#LeftUpperExtremity').combobox('disable');//禁用--肌力左上肢
                    //    $('#LeftLowerExtremity').combobox('disable');//禁用--肌力左下肢
                    //    $('#RightUpperLimb').combobox('disable');//禁用--肌力右上肢
                    //    $('#RightLowerLimb').combobox('disable');//禁用--肌力右下肢
                    //    $('#MuscularTension').combobox('disable');//禁用--肌张力
                    //}
                    $('#lblNervousSystemSupplement').css("color", "Black");//20161118--增加神经系统补充说明

                    if (DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0) {
                        //$('#tdNervousSystem').css("color", "red");
                        $('#spanFaceAndSpeech').css("color", "red");//面部、言语

                        var Consciousness = $('#Consciousness').combobox('getValue');//意识
                        if (Consciousness == "昏迷" || Consciousness == "丧失") {
                            $('#spanAnimalForce').css("color", "Black");//如果“意识”选择昏迷或者丧失，肌力不为必填项
                        }
                        else {
                            $('#spanAnimalForce').css("color", "red");//肌力
                        }
                        //$('#spanMuscularTension').css("color", "red");//肌张力
                    }
                    else {
                        //$('#tdNervousSystem').css("color", "Black");
                        $('#spanFaceAndSpeech').css("color", "Black");
                        $('#spanAnimalForce').css("color", "Black");
                        //$('#spanMuscularTension').css("color", "Black");
                    }
                }
            }
        });
        //#endregion

        //#region 肌张力
        EUIcombobox("#MuscularTension", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'MuscularTension',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 产科检查
        EUIcombobox("#ObstetricExamination", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'ObstetricExamination',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                ObstetricExaminationSelect();
            }
        });
        //#endregion

        //#region 运动反应
        //$("#MotionResponse").combobox({
        //    value: '--请选择--',
        //    onChange: function (param) {
        //        CalculationScore();
        //    }
        //});
        //#endregion

        //#region 心电图印象
        EUIcombobox("#ECG", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'ECG',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var value = $('#ECG').datebox('getValue');
                if (value == "拒查" || value == "未查") {
                    if (value == "拒查") {
                        $('#ECGImpression').val("拒查");//
                    }
                    if (value == "未查") {
                        $('#ECGImpression').val("未查");//
                    }
                    $('#ButtonECGFuSelect').linkbutton({ disabled: true });//禁用--心电图印象的第一个选择按钮
                    $('#ButtonECGFuCha').linkbutton({ disabled: true });//禁用--心电图印象的第一个复查按钮
                    $('#ECGImpressionRetestI').attr("disabled", true);//禁用--心电图印象的第一个复查按钮后面的文本框
                    $('#ECGImpressionRetestI').val("");//清空
                    $('#ButtonECGFuSelect1').linkbutton({ disabled: true });//禁用--心电图印象的第二个选择按钮
                    $('#ButtonECGFuCha2').linkbutton({ disabled: true });//禁用--心电图印象的第二个复查按钮
                    $('#ECGImpressionRetestII').attr("disabled", true);//禁用--心电图印象的第二个复查按钮后面的文本框
                    $('#ECGImpressionRetestII').val("");//清空
                    $('#ButtonECGFuSelect2').linkbutton({ disabled: true });//禁用--心电图印象的第三个选择按钮
                    $('#ButtonECGImpressionDoubt').linkbutton({ disabled: true });//禁用--心电图印象的疑问按钮20150916
                    $('#ECGImpressionDoubt').val("");//清空20150916

                    //$('#ECGImpressionRetestIDoubt').attr("disabled", true);//禁用--心电图印象的复查1疑问20150916
                    $('#ECGImpressionRetestIDoubt').val("");//清空
                    $('#ButtonECGImpressionRetestIDoubt').linkbutton({ disabled: true });//禁用--复查1疑问按钮20150916
                    //$('#ECGImpressionRetestIIDoubt').attr("disabled", true);//禁用--复查2疑问文本框20150916
                    $('#ECGImpressionRetestIIDoubt').val("");//清空
                    $('#ButtonECGImpressionRetestIIDoubt').linkbutton({ disabled: true });//禁用--心电图印象的复查2疑问按钮20150916

                    $('input[name="CheckBox_DaoLian"]').prop("disabled", "disabled");//20160203禁用--12导联
                    unCheckBoxAll("CheckBox_DaoLian", ""); //清空--12导联--20160203禁用

                    //2022-11-22 zch //add2024-08-26 plq 移植
                    $('#trECGImpressionsTime').css("display", "none");//显示行：心电图时间
                }
                else {
                    $('#ECGImpression').val("");//
                    $('#ButtonECGFuSelect').linkbutton({ disabled: false });//启用--心电图印象的第一个选择按钮
                    $('#ButtonECGFuCha').linkbutton({ disabled: false });//启用--心电图印象的第一个复查按钮
                    $('#ECGImpressionRetestI').attr("disabled", false);//启用--心电图印象的第一个复查按钮后面的文本框
                    $('#ButtonECGFuSelect1').linkbutton({ disabled: false });//启用--心电图印象的第二个选择按钮
                    $('#ButtonECGFuCha2').linkbutton({ disabled: false });//启用--心电图印象的第二个复查按钮
                    $('#ECGImpressionRetestII').attr("disabled", false);//启用--心电图印象的第二个复查按钮后面的文本框
                    $('#ButtonECGFuSelect2').linkbutton({ disabled: false });//启用--心电图印象的第三个选择按钮
                    $('#ButtonECGImpressionDoubt').linkbutton({ disabled: false });//启用--心电图印象的疑问按钮20150916

                    //$('#ECGImpressionRetestIDoubt').attr("disabled", false);//启用--心电图印象的复查1疑问20150916
                    $('#ButtonECGImpressionRetestIDoubt').linkbutton({ disabled: false });//启用--复查1疑问按钮20150916
                    //$('#ECGImpressionRetestIIDoubt').attr("disabled", false);//启用--复查2疑问文本框20150916
                    $('#ButtonECGImpressionRetestIIDoubt').linkbutton({ disabled: false });//启用--心电图印象的复查2疑问按钮20150916

                    $('input[name="CheckBox_DaoLian"]').prop("disabled", "");//20160203禁用--12导联

                    //2022-11-22 zch //add2024-08-26 plq移植
                    var IllState = $('#IllState').combobox('getValue');//病情分类
                    if (IllState == "呼吸心跳停止") {
                        $('#trECGImpressionsTime').css("display", "");//显示行：心电图时间
                    }
                }
            }
        });
        //#endregion

        //#region 血糖
        EUIcombobox("#BloodSugarSelect", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'ECG',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var value = $('#BloodSugarSelect').datebox('getValue');
                if (value == "拒查" || value == "未查") {
                    if (value == "拒查") {
                        $('#BloodSugar').val("拒查");//
                    }
                    if (value == "未查") {
                        $('#BloodSugar').val("未查");//
                    }
                    $('#BloodSugar').attr("disabled", true);//禁用--血糖的第一个文本框
                    $('#ButtonBloodSugarFuCha').linkbutton({ disabled: true });//禁用--血糖的第一个复查按钮
                    $('#BloodSugarRetestI').attr("disabled", true);//禁用--血糖的第一个复查按钮后面的文本框
                    $('#BloodSugarRetestI').val("");//清空
                    $('#ButtonBloodSugarFuCha2').linkbutton({ disabled: true });//禁用--血糖的第二个复查按钮
                    $('#BloodSugarRetestII').attr("disabled", true);//禁用--血糖的第二个复查按钮后面的文本框
                    $('#BloodSugarRetestII').val("");//清空
                }
                else {
                    $('#BloodSugar').val("");//
                    $('#BloodSugar').attr("disabled", false);//启用--血糖的第一个文本框
                    $('#ButtonBloodSugarFuCha').linkbutton({ disabled: false });//启用--血糖的第一个复查按钮
                    $('#BloodSugarRetestI').attr("disabled", false);//启用--血糖的第一个复查按钮后面的文本框
                    $('#ButtonBloodSugarFuCha2').linkbutton({ disabled: false });//启用--血糖的第二个复查按钮
                    $('#BloodSugarRetestII').attr("disabled", false);//启用--血糖的第二个复查按钮后面的文本框
                }

            }
        });
        //#endregion

        //#region 血氧饱和度
        EUIcombobox("#BloodOxygenSelect", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'ECG',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var value = $('#BloodOxygenSelect').datebox('getValue');
                if (value == "拒查" || value == "未查") {
                    if (value == "拒查") {
                        $('#BloodOxygen').val("拒查");//
                    }
                    if (value == "未查") {
                        $('#BloodOxygen').val("未查");//
                    }
                    $('#BloodOxygen').attr("disabled", true);//禁用--血氧饱和度的第一个文本框
                    $('#ButtonBloodOxygenFuCha').linkbutton({ disabled: true });//禁用--血氧饱和度的第一个复查按钮
                    $('#BloodOxygenRetestI').attr("disabled", true);//禁用--血氧饱和度的第一个复查按钮后面的文本框
                    $('#ButtonBloodOxygenFuCha2').linkbutton({ disabled: true });//禁用--血氧饱和度的第二个复查按钮
                    $('#BloodOxygenRetestII').attr("disabled", true);//禁用--血氧饱和度的第二个复查按钮后面的文本框
                }
                else {
                    $('#BloodOxygen').val("");//
                    $('#BloodOxygen').attr("disabled", false);//启用--血氧饱和度的第一个文本框
                    $('#ButtonBloodOxygenFuCha').linkbutton({ disabled: false });//启用--血氧饱和度的第一个复查按钮
                    $('#BloodOxygenRetestI').attr("disabled", false);//启用--血氧饱和度的第一个复查按钮后面的文本框
                    $('#ButtonBloodOxygenFuCha2').linkbutton({ disabled: false });//启用--血氧饱和度的第二个复查按钮
                    $('#BloodOxygenRetestII').attr("disabled", false);//启用--血氧饱和度的第二个复查按钮后面的文本框
                }

            }
        });
        //#endregion

        @*//#region 救治记录心肺复苏
            EUIcombobox("#RescueXFFSMould", {
                url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'RescueXFFSMould',
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                panelHeight: 'auto',
                value: '--请选择--',
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }],
                onChange: function (param) {

                }
            });
            //#endregion*@


        //#region 发病地点20150917
        EUIcombobox("#AttackPlace", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'AttackPlace',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 复苏前心电图诊断
        EUIcombobox("#BeforeResuscitationECGDiagnosis", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'BeforeResuscitationECGDiagnosis',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            panelWidth: 150,
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {

            }
        });
        //#endregion

        //#region 心脏骤停可能原因-20150917
        EUIcombobox("#CardiacArrestReason", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'CardiacArrestReason',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            //panelWidth: 150,
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                selectCardiacArrestReason();
            }
        });
        //#endregion

        //#region 病情分类
        EUIcombobox("#IllState", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'IllState',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                var value = $('#IllState').combobox('getValue');//病情分类
                if (value == "危重") {
                    $('#IllStateReport').combobox('setValue', "报");//病情预报
                    SetRadioOfFormed("IFFormedConsent", "True"); //告知签字--20160111
                }
                else {
                    $('#IllStateReport').combobox('setValue', "--请选择--");//病情预报

                }
                //20160328--原来是“死亡”修改为“呼吸心跳停止”
                if (value == "呼吸心跳停止") {
                    SetRadioOfFormed("IFFormedConsent", "True"); //告知签字--20160111
                    $('#spanDeathCase').css("color", "red");//死亡病例--20160328修改为“呼吸心跳停止”
                    $('#spanDeathCertificate').css("color", "red");//死亡证明

                    var ECGImpressionValue = $('#ECGImpression').val();//心电图印象 //add2024-08-26 plq移植
                    if (ECGImpressionValue != "" && ECGImpressionValue != "拒查" && ECGImpressionValue != "未查") {  //2022-10-11 zch 当病情分类为"呼吸心跳停止"
                        $('#trECGImpressionsTime').css("display", "");//显示行：心电图时间
                    }
                }
                else {
                    $('#spanDeathCase').css("color", "Black");//死亡病例--20160328修改为“呼吸心跳停止”
                    $('#spanDeathCertificate').css("color", "Black");//死亡证明

                    //2022-10-11 zch 当病情分类不是"呼吸心跳停止" //add2024-08-26 plq移植
                    $('#trECGImpressionsTime').css("display", "none");//隐藏行：心电图印象其他
                }
                //if (value == "一般") {
                //    unCheckBoxAll("IFFormedConsent", ""); //告知签字--20160111
                //}

            }
        });
        //#endregion

        //#region 病情预报
        EUIcombobox("#IllStateReport", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'IllStateReport',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                RequiredByRemark();
            }
        });
        //#endregion


        //点击告知签字后--20161121
        $('input[name="IFFormedConsent"]').bind('click', function () {
            RequiredByRemark();
        });

        //#region 死亡病例--20160328修改为“呼吸心跳停止”
        EUIcombobox("#DeathCase", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'DeathCase',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }]
        });
        //#endregion

        //#region 死亡证明
        EUIcombobox("#DeathCertificate", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'DeathCertificate',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }]
        });
        //#endregion

        //#region 急救效果
        EUIcombobox("#FirstAidEffect", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'FirstAidEffect',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }]
        });
        //#endregion

        //#region 重大突发事件
        EUIcombobox("#MajorEmergencies", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'MajorEmergencies',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }]
        });
        //#endregion

        //#region 病家合作度
        EUIcombobox("#DiseaseCooperation", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'DiseaseCooperation',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
                selectDiseaseCooperation();
            }
        });
        //#endregion

        //#region 回访原因20150917
        EUIcombobox("#DoctorFollowUpReason", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'FollowUpReason',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
            }
        });
        //#endregion

        //#region 中心回访原因20160115
        EUIcombobox("#CenterFollowUp", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'FollowUpReason',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
            }
        });
        //#endregion

        //#region 20151124分中心抽查不合格原因
        EUIcombobox("#SubCenterSpotChecksUnqualifiedReason", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'SpotChecksUnqualifiedReason',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
            }
        });
        //#endregion

        //#region 20151124中心抽查不合格原因
        EUIcombobox("#CenterSpotChecksUnqualifiedReason", {
            url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + 'SpotChecksUnqualifiedReason',
            valueField: 'Name',
            textField: 'Name',
            editable: false,
            panelHeight: 'auto',
            value: '--请选择--',
            OneOption: [{
                ID: "",
                Name: "--请选择--"
            }],
            onChange: function (param) {
            }
        });
        //#endregion

        //选择心电图印象的第一个复查按钮
        $('#ButtonECGFuCha').bind('click', function () {
            //var tt = $('#ECGImpressionRetestI').hidden;
            var hidden = document.getElementById('ECGImpressionRetestI').hidden;
            //var v = $(this).val();
            if (hidden == false) {
                document.getElementById('ECGImpressionRetestI').hidden = true;
                $('#ButtonECGFuCha').linkbutton({ text: '复查' });
                $('#ECGImpressionRetestI').val("");//清除第一次复查结果
                $('#ECGImpressionRetestI').css("display", "none");//隐藏
                $('#ButtonECGFuSelect1').css("display", "none");//隐藏
                $('#ECGImpressionRetestIDoubt').css("display", "none");//隐藏--疑问文本框20150916
                $('#ButtonECGImpressionRetestIDoubt').css("display", "none");//隐藏--疑问按钮20150916
                if (document.getElementById('ECGImpressionRetestII').value == "") {
                    $('#ButtonECGFuCha2').css("display", "none");//隐藏
                    $('#ButtonECGFuCha2').linkbutton({ text: '复查' });
                    $('#ECGImpressionRetestII').css("display", "none");
                    $('#ButtonECGFuSelect2').css("display", "none");

                    $('#ECGImpressionRetestIIDoubt').css("display", "none");//隐藏--疑问文本框20150916
                    $('#ButtonECGImpressionRetestIIDoubt').css("display", "none");//隐藏--疑问按钮20150916
                }
            }
            else {
                document.getElementById('ECGImpressionRetestI').hidden = false;
                $('#ButtonECGFuCha').linkbutton({ text: '取消复查' });
                $('#ECGImpressionRetestI').css("display", "");
                $('#ButtonECGFuSelect1').css("display", "");
                $('#ButtonECGFuCha2').css("display", "");
                $('#ECGImpressionRetestIDoubt').css("display", "");//显示--疑问文本框20150916
                $('#ButtonECGImpressionRetestIDoubt').css("display", "");//显示--疑问按钮20150916
                if (document.getElementById('ECGImpressionRetestII').value != "") {
                    $('#ECGImpressionRetestII').css("display", "");
                    $('#ButtonECGFuSelect2').css("display", "");
                    $('#ECGImpressionRetestIIDoubt').css("display", "");//显示--疑问文本框20150916
                    $('#ButtonECGImpressionRetestIIDoubt').css("display", "");//显示--疑问按钮20150916
                }
                else {
                    document.getElementById('ECGImpressionRetestII').hidden = true;
                }
            }
            //alert(d);
        });
        //选择心电图印象的第二个复查按钮
        $('#ButtonECGFuCha2').bind('click', function () {
            var hidden = document.getElementById('ECGImpressionRetestII').hidden;
            if (hidden == false) {
                document.getElementById('ECGImpressionRetestII').hidden = true;
                $('#ButtonECGFuCha2').linkbutton({ text: '复查' });
                $('#ECGImpressionRetestII').val("");//清除第二次复查结果
                $('#ECGImpressionRetestII').css("display", "none");//隐藏
                $('#ButtonECGFuSelect2').css("display", "none");//隐藏
                $('#ECGImpressionRetestIIDoubt').css("display", "none");//隐藏--疑问文本框20150916
                $('#ButtonECGImpressionRetestIIDoubt').css("display", "none");//隐藏--疑问按钮20150916
            }
            else {
                document.getElementById('ECGImpressionRetestII').hidden = false;
                $('#ButtonECGFuCha2').linkbutton({ text: '取消复查' });
                $('#ECGImpressionRetestII').css("display", "");
                $('#ButtonECGFuSelect2').css("display", "");
                $('#ECGImpressionRetestIIDoubt').css("display", "");//显示--疑问文本框20150916
                $('#ButtonECGImpressionRetestIIDoubt').css("display", "");//显示--疑问按钮20150916
            }
        });

        //选择血糖的第一个复查按钮
        $('#ButtonBloodSugarFuCha').bind('click', function () {
            var hidden = document.getElementById('BloodSugarRetestI').hidden;
            if (hidden == false) {
                document.getElementById('BloodSugarRetestI').hidden = true;
                $('#ButtonBloodSugarFuCha').linkbutton({ text: '复查' });
                $('#BloodSugarRetestI').val("");//清除第一次复查结果
                $('#BloodSugarRetestI').css("display", "none");//隐藏
                if (document.getElementById('BloodSugarRetestII').value == "") {
                    $('#ButtonBloodSugarFuCha2').css("display", "none");//隐藏
                    $('#ButtonBloodSugarFuCha2').linkbutton({ text: '复查' });
                    $('#BloodSugarRetestII').css("display", "none");
                }
            }
            else {
                document.getElementById('BloodSugarRetestI').hidden = false;
                $('#ButtonBloodSugarFuCha').linkbutton({ text: '取消复查' });
                $('#BloodSugarRetestI').css("display", "");
                $('#ButtonBloodSugarFuCha2').css("display", "");
                if (document.getElementById('BloodSugarRetestII').value != "") {
                    $('#BloodSugarRetestII').css("display", "");
                }
                else {
                    document.getElementById('BloodSugarRetestII').hidden = true;
                }
            }
        });
        //选择血糖的第二个复查按钮
        $('#ButtonBloodSugarFuCha2').bind('click', function () {
            var hidden = document.getElementById('BloodSugarRetestII').hidden;
            if (hidden == false) {
                document.getElementById('BloodSugarRetestII').hidden = true;
                $('#ButtonBloodSugarFuCha2').linkbutton({ text: '复查' });
                $('#BloodSugarRetestII').val("");//清除第二次复查结果
                $('#BloodSugarRetestII').css("display", "none");//隐藏
            }
            else {
                document.getElementById('BloodSugarRetestII').hidden = false;
                $('#ButtonBloodSugarFuCha2').linkbutton({ text: '取消复查' });
                $('#BloodSugarRetestII').css("display", "");
            }
        });

        //选择血氧饱和度的第一个复查按钮
        $('#ButtonBloodOxygenFuCha').bind('click', function () {
            var hidden = document.getElementById('BloodOxygenRetestI').hidden;
            if (hidden == false) {
                document.getElementById('BloodOxygenRetestI').hidden = true;
                $('#ButtonBloodOxygenFuCha').linkbutton({ text: '复查' });
                $('#BloodOxygenRetestI').val("");//清除第一次复查结果
                $('#BloodOxygenRetestI').css("display", "none");//隐藏
                if (document.getElementById('BloodOxygenRetestII').value == "") {
                    $('#ButtonBloodOxygenFuCha2').css("display", "none");//隐藏
                    $('#ButtonBloodOxygenFuCha2').linkbutton({ text: '复查' });
                    $('#BloodOxygenRetestII').css("display", "none");
                }
            }
            else {
                document.getElementById('BloodOxygenRetestI').hidden = false;
                $('#ButtonBloodOxygenFuCha').linkbutton({ text: '取消复查' });
                $('#BloodOxygenRetestI').css("display", "");
                $('#ButtonBloodOxygenFuCha2').css("display", "");
                if (document.getElementById('BloodOxygenRetestII').value != "") {
                    $('#BloodOxygenRetestII').css("display", "");
                }
                else {
                    document.getElementById('BloodOxygenRetestII').hidden = true;
                }
            }
        });
        //选择血氧饱和度的第二个复查按钮
        $('#ButtonBloodOxygenFuCha2').bind('click', function () {
            var hidden = document.getElementById('BloodOxygenRetestII').hidden;
            if (hidden == false) {
                document.getElementById('BloodOxygenRetestII').hidden = true;
                $('#ButtonBloodOxygenFuCha2').linkbutton({ text: '复查' });
                $('#BloodOxygenRetestII').val("");//清除第二次复查结果
                $('#BloodOxygenRetestII').css("display", "none");//隐藏
            }
            else {
                document.getElementById('BloodOxygenRetestII').hidden = false;
                $('#ButtonBloodOxygenFuCha2').linkbutton({ text: '取消复查' });
                $('#BloodOxygenRetestII').css("display", "");
            }
        });

        //点击事件类型后
        $('input[name="alarmEventType"]').bind('click', function () {
            HidByAlarmEventType();
            RequiredByRemark();
        });

        //点击既往病史后
        $('input[name="PastMedicalHistory"]').bind('click', function () {
            ColorPastMedicalHistorySupplement();
        });

        //点击体检后
        //$('input[name="tiJianChoose"]').bind('click', function () {
        //    SelectTiJian();//选择体检后变化
        //});

        //点击分中心抽查结果后--20151124
        $('input[name="SubCenterSpotChecksResult"]').bind('click', function () {
            selectSubCenterSpotChecksResult();

            var value = SplitArray(GetCheckBox("SubCenterSpotChecksResult"));//中心抽查结果
            if (value == "优秀") {
                $('#tSubCenterSpotChecksRmark').textbox('setValue', "规范");//分中心抽查备注--20160113
            }
            else if (value == "良好") {
                $('#tSubCenterSpotChecksRmark').textbox('setValue', "基本规范");//分中心抽查备注--20160113
            }
            //else if (value == "不合格" || value == "待定") {
            //    $('#tSubCenterSpotChecksRmark').textbox('setValue', " ");//分中心抽查备注--20160113
            //}
        });
        //点击中心抽查结果后--20151124
        $('input[name="CenterSpotChecksResult"]').bind('click', function () {
            selectCenterSpotChecksResult();

            var value = SplitArray(GetCheckBox("CenterSpotChecksResult"));//中心抽查结果
            if (value == "优秀") {
                $('#tCenterSpotChecksRmark').textbox('setValue', "规范");//中心抽查备注--20160113
            }
            else if (value == "良好") {
                $('#tCenterSpotChecksRmark').textbox('setValue', "基本规范");//中心抽查备注--20160113
            }
            //else if (value == "不合格" || value == "待定") {
            //    $('#tCenterSpotChecksRmark').textbox('setValue', " ");//中心抽查备注--20160113
            //}
        });

        //选择“病种分类”后主诉、现病史从数据库取值过来
        $('input[name="DiseasesClassification"]').bind('click', function () {

            GetDiseasesClassification();//根据病种分类选择来生成病历分类子项选择

            var selectName = GetCheckBox("alarmEventType");//循环系统,五官科及眼科疾病,
            var Names = SplitArray(GetCheckBox("DiseasesClassification"));//病种分类选择
            var IFShowMould = GetCheckBox("CheckBox_DiseasesClassification");//20151230是否取模板
            //$('input[name="DiseasesClassification"]').each(function () {
            //    if (Names != "") {
            //        if (Names.indexOf(",") >= 0 && Names.indexOf($(this).val())<0) {
            //            $(this).prop("disabled", "disabled");
            //        }
            //        else {
            //            $(this).prop("disabled", "");
            //        }

            //    }
            //    else
            //        $(this).prop("disabled", "");
            //});

            //20161216--增加事件类型选择“急救转院”也取模板
            if ((selectName == "救治" || selectName == "急救转院") && IFShowMould == "True") {
                //为病历模版项赋值
                var url = '@Url.Content("~/Medical/GetAllTemplate/")'
                var parm = "TemplateName=" + Names;
                $.ajax({
                    type: "POST",
                    url: url,
                    data: parm,
                    success: function (msg) {
                        //alert(msg.length);
                        //alert(msg[0].AlarmReason);
                        if (msg.length >= 1) {
                            $('#tAlarmReason').textbox('setValue', $('#tAlarmReasons').val() + " " + msg[0].AlarmReason);//主诉
                            $('#tHistoryOfPresentIllness').textbox('setValue', $('#HidHistoryOfPresentIllness').val() + " " + msg[0].HistoryOfPresentIllness);//现病史

                            //if (Names.indexOf("脑血管疾病") < 0) {
                            //    //$('#tdNervousSystem').css("color", "Black");
                            //    $('#spanFaceAndSpeech').css("color", "Black");
                            //    $('#spanAnimalForce').css("color", "Black");
                            //    //$('#spanMuscularTension').css("color", "Black");
                            //    if (Names.indexOf("损伤性疾病") < 0 && Names.indexOf("妇产科疾病") < 0) {
                            //        $('#DiseasesClassificationSupplement').combobox('setValue', "");//病种分类补充
                            //    }
                            //}
                            ////if ((Names.indexOf("损伤性疾病") < 0 && Names.indexOf("妇产科疾病") < 0) || (Names.indexOf("妇产科疾病") < 0 && Names.indexOf("脑血管疾病") < 0)) {
                            ////    $('#DiseasesClassificationSupplement').combobox('setValue', "--请选择--");//病种分类补充
                            ////}
                            //if ((Names.indexOf("妇产科疾病") >= 0 && Names.indexOf("脑血管疾病") >= 0) || Names.indexOf("损伤性疾病") >= 0) {
                            //    $('#DiseasesClassificationSupplement').combobox('clear');//清空病种分类补充
                            //}
                            //if ((Names.indexOf("妇产科疾病") >= 0 && Names.indexOf("脑血管疾病") < 0 && Names.indexOf("损伤性疾病") < 0)) {
                            //    $('#DiseasesClassificationSupplement').combobox('setValue', "");//病种分类补充
                            //}
                            //if ((Names.indexOf("脑血管疾病") >= 0 && Names.indexOf("妇产科疾病") < 0 && Names.indexOf("损伤性疾病") < 0)) {
                            //    $('#DiseasesClassificationSupplement').combobox('setValue', "");//病种分类补充
                            //}
                        }
                        else {
                            $('#tAlarmReason').textbox('setValue', $('#tAlarmReasons').val());//主诉
                            $('#tHistoryOfPresentIllness').textbox('setValue', $('#HidHistoryOfPresentIllness').val());//现病史
                            $('#DiseasesClassificationSupplement').combobox('setValue', "");//病种分类补充
                            $('#ObstetricExamination').combobox('setValue', "--请选择--");//产科检查选择
                            //$('#tdNervousSystem').css("color", "Black");
                            $('#spanFaceAndSpeech').css("color", "Black");
                            $('#spanAnimalForce').css("color", "Black");
                            //$('#spanMuscularTension').css("color", "Black");//肌张力
                        }
                    },
                    error: function () {
                        $.messager.alert('错误', '可能停留时间过长！与服务器断开连接！请重新登录！', "error");
                    }

                })
            }
            ////病种分类包含“损伤性疾病”，TI评分展开
            //var Names = SplitArray(GetCheckBox("DiseasesClassification"));
            //var value = GetComboboxMultiple(isNullOrEmptyString("DiseasesClassificationSupplement"));//病种分类补充

            //if (Names.indexOf("损伤性疾病") >= 0 && value != "" && value.indexOf("其他损伤性疾病") < 0) {
            //    HidTI(1);
            //}
            //else {
            //    HidTI(0);
            //}

        });

        //点击自救措施后-20161216
        $('input[name="SaveOneselfMeasures"]').bind('click', function () {
            SelectSaveOneselfMeasures();
        });



        BindPatientRecord(); //病历页面加载方法
        defaultHidden();//
        bindGridPRRescueList();//绑定救治记录列表
        HidByAlarmEventType();//根据事件类型变化，隐藏和显示不同信息
        selectEmptyReason();//空车原因
        selectIsSeePeople(); //根据空车是否见到病人，隐藏和显示不同信息
        //SelectTiJian();//选择体检后变化
        JudgeSendAddress();//20151123判断送往地点选择
        HidAttemperData();//隐藏调度信息
        TChooseChange();//T选择变化
        PChooseChange();//P选择变化
        RChooseChange();//R选择变化
        BPChooseChange();//BP选择变化
        HidGCS();
        HidTI();
        HidApgar();
        HidXinFeiFuShu();
        selectPupil();//瞳孔-根据选择来判断是否显示补充描述；
        selectLightReflex(); //对光反射 - 根据选择来判断是否显示补充描述；
        selectDiseaseCooperation();//病家合作度
        SelectDiseasesClassificationSupplement();
        HidInstrumentalExamination();//根据病种分类选择来生成病历分类子项选择
        ColorPastMedicalHistorySupplement();//如果既往病史选择其他，既往病史的补充说明变红
        ColorLungsSupplement();
        ColorHeart();
        ObstetricExaminationSelect();
        SelectBodyFigureModels();
        SelectHeadModels();
        SelectNeckModels();
        SelectChestModels();
        SelectLungModels();
        SelectFuBuModels();
        SelectJiZhuModels();
        SelectLimbModels();
        selectCardiacArrestReason();
        HidCenterAuditResult();
        DisabledDiseasesClassification();//判断病种分类禁用内容
        SelectSexAndAge();
        GetDiseasesClassification();
        onClickRescueType();
        RescueXFFS();
        HidAlarmEventTypes();
        selectSubCenterSpotChecksResult();
        selectCenterSpotChecksResult();
        SelectNoticeAttendNursingLectures();
        SelectFillNoticeAttendNursingLectures();
        SelectActualAttendNursingLectures();
        SelectFillActualAttendNursingLectures();//20151209
        SelectFill2NoticeAttendNursingLectures();//20151209
        RequiredByRemark();//20161121
        SelectSaveOneselfMeasures();//20161216

        //SelectMedicalGuide();
    });


    //#region 病历页面加载方法
    function BindPatientRecord() {
        state = '@ViewData["state"]';
        TaskCode = '@ViewData["TaskCode"]';
        PatientOrder = '@ViewData["PatientOrder"]';
        BeginFillPatientTime = '@ViewData["BeginFillPatientTime"]';//开始填写病历时间
        $('#HidTaskCode').val(TaskCode);
        $('#HidPatientOrder').val(PatientOrder);


        //#region 根据不同状态来进行不同的数据绑定
        var TitleName;
        switch (state) {
            case "new":
                TitleName = "新增患者信息";
                BindAttemperData(TitleName);
                BindAttemperDataToPatient(TitleName);
                $('#btnPrint').linkbutton("disable");//禁用
                HidAuditSpotChecks();//隐藏心肺复苏审核、分中心抽查和中心抽查按钮
                IsShowAuditSpotChecks();//判断登录人是否有心肺复苏审核、分中心抽查和中心抽查权限
                break;
            case "edit":
                TitleName = "编辑患者信息";
                BindAttemperData(TitleName);
                BindEditPatientRecordData(TitleName);//编辑病历时绑定数据的方法
                IsShowAuditSpotChecks();//判断登录人是否有心肺复苏审核、分中心抽查和中心抽查权限
                break;
            case "look":
                TitleName = "查看患者信息";
                BindAttemperData(TitleName);
                BindEditPatientRecordData(TitleName);//查看病历时绑定数据的方法
                IsShowAuditSpotChecks();//判断登录人是否有心肺复苏审核、分中心抽查和中心抽查权限
                break;
        }
        //#endregion
    }

    //#region 给病历中的调度信息绑定数据的方法
    function BindAttemperData(TitleName) {

        //#region 为病历基础变量赋值
        $('#lblPatientRecordName').html(TitleName); //标题
        CallOrder = '@ViewBag.Attemper.CallOrder' == null ? "" : '@ViewBag.Attemper.CallOrder';
        AlarmType = '@ViewBag.Attemper.AlarmType' == null ? "" : '@ViewBag.Attemper.AlarmType';
        Name = '@ViewBag.Attemper.Name' == null ? "" : '@ViewBag.Attemper.Name';
        Sex = '@ViewBag.Attemper.Sex' == null ? "" : '@ViewBag.Attemper.Sex';
        Age = '@ViewBag.Attemper.Age' == null ? "" : '@ViewBag.Attemper.Age';
        StationCode = '@ViewBag.Attemper.StationCode' == null ? "" : '@ViewBag.Attemper.StationCode';
        Station = '@ViewBag.Attemper.Station' == null ? "" : '@ViewBag.Attemper.Station';
        LocalAddress = '@ViewBag.Attemper.LocalAddress' == null ? "" : '@ViewBag.Attemper.LocalAddress';
        FirstAcceptTime = '@ViewBag.Attemper.FirstAcceptTime' == null ? "" : '@ViewBag.Attemper.FirstAcceptTime';//首次受理时刻
        FirstAcceptTime = FirstAcceptTime.replace(/\//g, "-"); //不能识别/,替换为-
        GenerationTaskTime = '@ViewBag.Attemper.GenerationTaskTime' == null ? "" : '@ViewBag.Attemper.GenerationTaskTime';
        GenerationTaskTime = GenerationTaskTime.replace(/\//g, "-"); //不能识别/,替换为-
        DrivingTime = '@ViewBag.Attemper.DrivingTime' == null ? "" : '@ViewBag.Attemper.DrivingTime';
        DrivingTime = DrivingTime.replace(/\//g, "-"); //不能识别/,替换为-
        ArriveSceneTime = '@ViewBag.Attemper.ArriveSceneTime' == null ? "" : '@ViewBag.Attemper.ArriveSceneTime';
        ArriveSceneTime = ArriveSceneTime.replace(/\//g, "-");
        LeaveSceneTime = '@ViewBag.Attemper.LeaveSceneTime' == null ? "" : '@ViewBag.Attemper.LeaveSceneTime';
        LeaveSceneTime = LeaveSceneTime.replace(/\//g, "-");
        ArriveDestinationTime = '@ViewBag.Attemper.ArriveDestinationTime' == null ? "" : '@ViewBag.Attemper.ArriveDestinationTime';
        ArriveDestinationTime = ArriveDestinationTime.replace(/\//g, "-");
        SendAddress = '@ViewBag.Attemper.SendAddress' == null ? "" : '@ViewBag.Attemper.SendAddress';
        Doctor = '@ViewBag.Attemper.Doctor' == null ? "" : '@ViewBag.Attemper.Doctor';
        Nurse = '@ViewBag.Attemper.Nurse' == null ? "" : '@ViewBag.Attemper.Nurse';
        Driver = '@ViewBag.Attemper.Driver' == null ? "" : '@ViewBag.Attemper.Driver';
        StretcherBearers = '@ViewBag.Attemper.StretcherBearers' == null ? "" : '@ViewBag.Attemper.StretcherBearers';
        ContactTelephone = '@ViewBag.Attemper.ContactTelephone' == null ? "" : '@ViewBag.Attemper.ContactTelephone';
        Area = '@ViewBag.Attemper.Area' == null ? "" : '@ViewBag.Attemper.Area';
        XCoordinate = '@ViewBag.Attemper.XCoordinate' == null ? "" : '@ViewBag.Attemper.XCoordinate';
        YCoordinate = '@ViewBag.Attemper.YCoordinate' == null ? "" : '@ViewBag.Attemper.YCoordinate';
        LinkPerson = '@ViewBag.Attemper.LinkPerson' == null ? "" : '@ViewBag.Attemper.LinkPerson';
        AlarmReason = '@ViewBag.Attemper.AlarmReason' == null ? "" : '@ViewBag.Attemper.AlarmReason';
        ForHelpPhone = '@ViewBag.Attemper.ForHelpPhone' == null ? "" : '@ViewBag.Attemper.ForHelpPhone';

        //#endregion

        //#region 为页面控件赋值

        //#region 传默认调度信息到不可修改的lbl里面
        $('#HidCallOrder').html(CallOrder); //用户流水号
        $('#lblName').html(Name); //姓名
        $('#lblSex').html(Sex);//性别
        $('#lblAge').html(Age);//年龄
        $('#lblStation').html(Station);//分站
        $('#lblSceneAddress').html(LocalAddress);//呼救地址
        $('#lblGenerationTaskTime').html(GenerationTaskTime);//发单时间
        $('#lblDrivingTime').html(DrivingTime);//出车时间
        $('#lblArriveSceneTime').html(ArriveSceneTime);//到达现场
        $('#lblSendAddress').html(SendAddress);//送往地点
        $('#lblLeaveSceneTime').html(LeaveSceneTime);//离开现场
        $('#lblArriveDestinationTime').html(ArriveDestinationTime);//到达时间
        $('#lblFirstAidDoctorAndNurse').html(Doctor + Nurse);//急救医护
        $('#lblDriver').html(Driver);//驾驶员
        $('#lblStretcherBearers').html(StretcherBearers);//担架员
        $('#lblHuanZheLianXiTell').html(ContactTelephone);//患者联系方式
        $('#lblArea').html(Area);//区域
        $('#lblXCoordinate').html(XCoordinate);//X坐标
        $('#lblYCoordinate').html(YCoordinate);//Y坐标
        $('#lblAlarmReason').html(AlarmReason);//主诉
        $('#lblAlarmType').html(AlarmType);//事件类型
        //$('#lblForHelpPhone').html(ForHelpPhone);//呼救电话
        $('#lblLinkPerson').html(LinkPerson);//联系人
        //#endregion

    }
    //#endregion

    //如果是新增加病历，就传调度信息给病历信息
    function BindAttemperDataToPatient() {
        //#region 赋值给病历信息
        var PatientRole = '@ViewData["PatientRole"]';//值为：-3，说明是护士角色
        if (PatientRole == -3) {
            if (AlarmType == "救治") {
                AlarmType = "急救转院";
            }
            else if (AlarmType == "转院") {
                AlarmType = "一般转院";
            }
        }
        else {
            if (AlarmType == "转院") {
                AlarmType = "一般转院";
            }
        }
        SetRadioOfList("alarmEventType", AlarmType == "转院" ? "一般转院" : AlarmType); //事件类型
        //$('input[name=alarmEventType][value=' + AlarmType + ']').attr("checked", true);//事件类型
        //$('#Name').val(Name); //姓名--20150909质检部要求不传
        //$('#Name').textbox('setValue', Name); //姓名
        //SetRadioOfList("Sex", Sex); //性别--20150909质检部要求不传
        //$('#Age').val(Age);//年龄
        $('#Station').combobox('setValue', StationCode); // 分站
        $('#LocalAddress').val($('#lblSceneAddress').html());//呼救地址
        $('#DrivingTime').datetimebox('setValue', DrivingTime);//出车时间
        $('#ArriveSceneTime').datetimebox('setValue', ArriveSceneTime);//到达现场
        //$('#SendAddress').combobox('setValue', SendAddress == "" ? "--请选择--" : SendAddress);//送往地点20160111注释
        $('#LeaveSceneTime').datetimebox('setValue', LeaveSceneTime);//离开现场
        $('#ArriveDestinationTime').datetimebox('setValue', ArriveDestinationTime);//到达时间
        $('#DoctorAndNurse').val($('#lblFirstAidDoctorAndNurse').html());//急救医护
        $('#Driver').val($('#lblDriver').html());//驾驶员
        $('#StretcherBearers').val($('#lblStretcherBearers').html());//担架员
        $('#ContactTelephone').val($('#lblHuanZheLianXiTell').html());//患者联系方式

        $('#CPRArriveSceneTime').datetimebox('setValue', ArriveSceneTime);//CPR到达现场时间20150917

        //#endregion
    }

    //隐藏保存回访按钮、心肺复苏审核、分中心抽查和中心抽查按钮
    function HidAuditSpotChecks() {
        $('#btnFollowUp').css("display", "none");//隐藏保存回访按钮

        $('#btnCenterAudit').css("display", "none");//隐藏--心肺复苏审核按钮
        $('input[name="CenterAuditResult"]').prop("disabled", "disabled");//禁用心肺复苏审核
        $('#tCenterNotThroughReason').textbox('readonly', true);	// 心肺复苏审核未通过原因只读

        $('#btnSubCenterSpotChecks').css("display", "none");//隐藏--分中心抽查按钮
        $('#btnSubCenterSpotCheckCancel').css("display", "none");//隐藏--分中心抽查取消按钮20160114
        $('input[name="SubCenterSpotChecksResult"]').prop("disabled", "disabled");//禁用
        $('#tSubCenterSpotChecksRmark').textbox('readonly', true);	// 分中心抽查备注只读
        $('#SubCenterSpotChecksUnqualifiedReason').prop("disabled", "disabled");//20151125禁用--分中心抽查不合格原因

        $('#btnClearAlarmReason').css("display", "none");//隐藏--清空主诉/现病史按钮20160826
        $('#btnCenterSpotChecks').css("display", "none");//隐藏--中心抽查按钮
        $('#btnCenterSpotCheckCancel').css("display", "none");//隐藏--中心抽查取消按钮20160114
        $('input[name="CenterSpotChecksResult"]').prop("disabled", "disabled");//禁用
        $('#tCenterSpotChecksRmark').textbox('readonly', true);	// 中心抽查备注只读
        $('#CenterSpotChecksUnqualifiedReason').prop("disabled", "disabled");//20151125禁用--中心抽查不合格原因
        $('input[name="NoticeAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--通知参加病历小讲课
        $('input[name="ActualAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--实际参加病历小讲课
        $('input[name="FillNoticeAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--补通知参加病历小讲课
        $('input[name="FillActualAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--补实际参加病历小讲课
        $('input[name="CheckBox_MedicalHistoryWritingProgress"]').prop("disabled", "disabled");//20151125禁用--病史书写进步
        $('input[name="Fill2NoticeAttendNursingLectures"]').prop("disabled", "disabled");//20151209禁用--补2通知参加病历小讲课
        $('input[name="Fill2ActualAttendNursingLectures"]').prop("disabled", "disabled");//20151209禁用--补2实际参加病历小讲课
    }
    //#endregion

    //判断登录人是否有心肺复苏审核、分中心抽查和中心抽查权限、中心回访权限
    function IsShowAuditSpotChecks() {
        if ('@ViewData["PRAuditCPR"]' != "" && SubmitLogo == "True") {

            var CPRSelect = SplitArray(GetCheckBox("CPRSelect"));// 心肺复苏选择
            if (CPRSelect == "ROSC" && Witness != "") {
                $('#btnCenterAudit').css("display", "");//显示--心肺复苏审核按钮
                ShowCPRPart();
                $('input[name="CenterAuditResult"]').prop("disabled", "");//
                $('#tCenterNotThroughReason').textbox('readonly', false);	//
            }
            else {
                $('#btnCenterAudit').css("display", "none");//隐藏--心肺复苏审核按钮
                HidCPRPart();//
                //ShowCPRPart();//测试
                $('input[name="CenterAuditResult"]').prop("disabled", "disabled");//禁用心肺复苏审核
                $('#tCenterNotThroughReason').textbox('readonly', true);	// 心肺复苏审核未通过原因只读
            }

        }
        else {
            $('#btnCenterAudit').css("display", "none");//隐藏--心肺复苏审核按钮
            HidCPRPart();//
            //ShowCPRPart();//测试
            $('input[name="CenterAuditResult"]').prop("disabled", "disabled");//禁用心肺复苏审核
            $('#tCenterNotThroughReason').textbox('readonly', true);	// 心肺复苏审核未通过原因只读
        }

        if ('@ViewData["SubCenterSpotChecks"]' != "" && SubmitLogo == "True") { //具备 提交病历 分中心抽查权限
            $('#btnSubCenterSpotChecks').css("display", "");//显示--分中心抽查按钮
            $('#btnSubCenterSpotCheckCancel').css("display", "");//显示--分中心抽查取消按钮20160114
            $('input[name="SubCenterSpotChecksResult"]').prop("disabled", "");//
            $('#tSubCenterSpotChecksRmark').textbox('readonly', false);	//
            $('#SubCenterSpotChecksUnqualifiedReason').prop("disabled", "");//20151125启用--分中心抽查不合格原因
        }
        else {
            $('#btnSubCenterSpotChecks').css("display", "none");//隐藏--分中心抽查按钮
            $('#btnSubCenterSpotCheckCancel').css("display", "none");//隐藏--分中心抽查取消按钮20160114
            $('input[name="SubCenterSpotChecksResult"]').prop("disabled", "disabled");//禁用
            $('#tSubCenterSpotChecksRmark').textbox('readonly', true);	// 分中心抽查备注只读
            $('#SubCenterSpotChecksUnqualifiedReason').prop("disabled", "disabled");//20151125禁用--分中心抽查不合格原因
        }

        if ('@ViewData["CenterSpotChecks"]' != "" && SubmitLogo == "True") {
            $('#btnCenterSpotChecks').css("display", "");//显示--中心抽查按钮
            $('#btnCenterSpotCheckCancel').css("display", "");//显示--中心抽查取消按钮20160114
            $('input[name="CenterSpotChecksResult"]').prop("disabled", "");//
            $('#tCenterSpotChecksRmark').textbox('readonly', false);	//
            $('#CenterSpotChecksUnqualifiedReason').prop("disabled", "");//20151125启用--中心抽查不合格原因
            $('input[name="NoticeAttendNursingLectures"]').prop("disabled", "");//20151125启用--通知参加病历小讲课
            $('input[name="ActualAttendNursingLectures"]').prop("disabled", "");//20151125启用--实际参加病历小讲课
            $('input[name="FillNoticeAttendNursingLectures"]').prop("disabled", "");//20151125启用--补通知参加病历小讲课
            $('input[name="FillActualAttendNursingLectures"]').prop("disabled", "");//20151125启用--补实际参加病历小讲课
            $('input[name="CheckBox_MedicalHistoryWritingProgress"]').prop("disabled", "");//20151125启用--病史书写进步
            $('input[name="Fill2NoticeAttendNursingLectures"]').prop("disabled", "");//20151209启用--补通知参加病历小讲课
            $('input[name="Fill2ActualAttendNursingLectures"]').prop("disabled", "");//20151209启用--补实际参加病历小讲课
        }
        else {
            $('#btnCenterSpotChecks').css("display", "none");//隐藏--中心抽查按钮
            $('#btnCenterSpotCheckCancel').css("display", "none");//隐藏--中心抽查取消按钮20160114
            $('input[name="CenterSpotChecksResult"]').prop("disabled", "disabled");//禁用
            $('#tCenterSpotChecksRmark').textbox('readonly', true);	// 中心抽查备注只读
            $('#CenterSpotChecksUnqualifiedReason').prop("disabled", "disabled");//20151125禁用--中心抽查不合格原因
            $('input[name="NoticeAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--通知参加病历小讲课
            $('input[name="ActualAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--实际参加病历小讲课
            $('input[name="FillNoticeAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--补通知参加病历小讲课
            $('input[name="FillActualAttendNursingLectures"]').prop("disabled", "disabled");//20151125禁用--补实际参加病历小讲课
            $('input[name="CheckBox_MedicalHistoryWritingProgress"]').prop("disabled", "disabled");//20151125禁用--病史书写进步
            $('input[name="Fill2NoticeAttendNursingLectures"]').prop("disabled", "disabled");//20151209禁用--补通知参加病历小讲课
            $('input[name="Fill2ActualAttendNursingLectures"]').prop("disabled", "disabled");//20151209禁用--补实际参加病历小讲课
        }

        //20160118中心回访判断
        if ('@ViewData["CenterFollowUpRole"]' != "" && SubmitLogo == "True") {
            $('#trFollowUp').css("display", "");//显示--中心回访
        }
        else {
            $('#trFollowUp').css("display", "none");//隐藏--中心回访
        }

        //20160118判断登录人工号是否是填写病历的人
        if ('@ViewData["AgentWorkID"]' == AgentWorkID && SubmitLogo == "True") {

            $('#btnFollowUp').css("display", "");//显示--个人回访按钮
        }
        else {
            $('#btnFollowUp').css("display", "none");//隐藏--个人回访按钮
        }

    }
    //#endregion

    //#region 根据调度传的“事件类型”来判断是否隐藏对应的内容；
    function HidAlarmEventTypes() {
        var SelectAlarmType = SplitArray(GetCheckBox("alarmEventType")); //事件类型
        OriginalTaskType = $('#lblAlarmType').html();//调度传过来的事件类型

        //20160303--
        var PatientRole = '@ViewData["PatientRole"]';//值为：-3，说明是护士角色
        if (PatientRole == -3) {
            if (OriginalTaskType == "救治") {
                OriginalTaskType = "急救转院";
            }
            else if (OriginalTaskType == "转院") {
                OriginalTaskType = "一般转院";
            }
        }
        else {
            if (OriginalTaskType == "转院") {
                OriginalTaskType = "一般转院";
            }
        }

        $('input[name="alarmEventType"]').each(function () {
            var alarmType = $(this).val();
            //如果调度传过来的事件类型是“转院”，那么事件类型“救治”和“急救转院”禁用
            //20161212--松江要求病历不用禁用全部放开，注释下面代码；
            //if (SelectAlarmType == "急救转院" && OriginalTaskType == "急救转院" && (alarmType == "救治")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //20160831--增加如果调度传过来的事件类型为：转院，默认选择“一般转院”，救治和急救转院禁用；
            //else if (SelectAlarmType == "一般转院" && OriginalTaskType == "一般转院" && (alarmType == "救治" || alarmType == "急救转院")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "一般转院" && OriginalTaskType == "急救转院" && (alarmType == "救治")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "取暖箱" && OriginalTaskType == "急救转院" && (alarmType == "救治")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "取暖箱" && OriginalTaskType == "一般转院" && (alarmType == "救治" || alarmType == "急救转院")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "回家" && OriginalTaskType == "回家" && (alarmType == "救治" || alarmType == "急救转院" || alarmType == "一般转院" || alarmType == "取暖箱")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "回家" && OriginalTaskType == "急救转院" && (alarmType == "救治")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "回家" && OriginalTaskType == "一般转院" && (alarmType == "救治" || alarmType == "急救转院")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "空车" && OriginalTaskType == "急救转院" && (alarmType == "救治")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "空车" && OriginalTaskType == "一般转院" && (alarmType == "救治" || alarmType == "急救转院")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else if (SelectAlarmType == "空车" && OriginalTaskType == "回家" && (alarmType == "救治" || alarmType == "急救转院" || alarmType == "一般转院" || alarmType == "取暖箱")) {
            //    $(this).prop("disabled", "disabled");
            //}
            //else
            //    $(this).prop("disabled", "");
        });
    }
    //#endregion

    //#region 编辑或查看病历时绑定数据的方法
    function BindEditPatientRecordData(TitleName) {

        //#region 为病历基础变量赋值

        //#region 病历主表
        if (state != "new") {
            $('#lblPatientRecordName').html(TitleName); //标题
            CallOrder = '@ViewBag.PRInfo.CallOrder' == null ? "" : '@ViewBag.PRInfo.CallOrder';
            @*Name = '@ViewBag.PRInfo.Name' == null ? "" : '@ViewBag.PRInfo.Name';*@
            Sex = '@ViewBag.PRInfo.Sex' == null ? "" : '@ViewBag.PRInfo.Sex';
            Age = '@ViewBag.PRInfo.Age' == null ? "" : '@ViewBag.PRInfo.Age';
            AgeType = '@ViewBag.PRInfo.AgeType' == null ? "" : '@ViewBag.PRInfo.AgeType';
            ForHelpPhone = '@ViewBag.PRInfo.ForHelpTelephone' == null ? "" : '@ViewBag.PRInfo.ForHelpTelephone';
            @*ContactTelephone = '@ViewBag.PRInfo.ContactTelephone' == null ? "" : '@ViewBag.PRInfo.ContactTelephone';*@
            AlarmType = '@ViewBag.PRInfo.PatientVersion' == null ? "" : '@ViewBag.PRInfo.PatientVersion';//事件类型
            OriginalTaskType = '@ViewBag.PRInfo.OriginalTaskType' == null ? "" : '@ViewBag.PRInfo.OriginalTaskType';//原事件类型20160303
            EmptyReason = '@ViewBag.PRInfo.EmptyReason' == null ? "" : '@ViewBag.PRInfo.EmptyReason';
            @*EmptyReasonSupplement = '@ViewBag.PRInfo.EmptyReasonSupplement' == null ? "" : '@ViewBag.PRInfo.EmptyReasonSupplement';*@
            IsSeePeople = '@ViewBag.PRInfo.IsSeePeople' == null ? "" : '@ViewBag.PRInfo.IsSeePeople';
            @*LocalAddress = '@ViewBag.PRInfo.LocalAddress' == null ? "" : '@ViewBag.PRInfo.LocalAddress';//现场地址*@
            StationCode = '@ViewBag.PRInfo.OutStationCode' == null ? "" : '@ViewBag.PRInfo.OutStationCode';
            SendAddress = '@ViewBag.PRInfo.SendAddress' == null ? "" : '@ViewBag.PRInfo.SendAddress';//送往地址


            DrivingTime = '@ViewBag.PRInfo.DrivingTime' == null ? "" : '@ViewBag.PRInfo.DrivingTime';
            DrivingTime = DrivingTime.replace(/\//g, "-"); //不能识别/,替换为-
            ArriveSceneTime = '@ViewBag.PRInfo.ArriveSceneTime' == null ? "" : '@ViewBag.PRInfo.ArriveSceneTime';
            ArriveSceneTime = ArriveSceneTime.replace(/\//g, "-");
            LeaveSceneTime = '@ViewBag.PRInfo.LeaveSceneTime' == null ? "" : '@ViewBag.PRInfo.LeaveSceneTime';
            LeaveSceneTime = LeaveSceneTime.replace(/\//g, "-");
            ArriveDestinationTime = '@ViewBag.PRInfo.ArriveDestinationTime' == null ? "" : '@ViewBag.PRInfo.ArriveDestinationTime';
            ArriveDestinationTime = ArriveDestinationTime.replace(/\//g, "-");
            @*Driver = '@ViewBag.PRInfo.Driver' == null ? "" : '@ViewBag.PRInfo.Driver';
                StretcherBearers = '@ViewBag.PRInfo.StretcherBearersI' == null ? "" : '@ViewBag.PRInfo.StretcherBearersI';
                DoctorAndNurse = '@ViewBag.PRInfo.DoctorAndNurse' == null ? "" : '@ViewBag.PRInfo.DoctorAndNurse';//医生护士
                TeachingPractice = '@ViewBag.PRInfo.TeachingPractice' == null ? "" : '@ViewBag.PRInfo.TeachingPractice';//带教实习*@
            ProvideMedicalHistoryPeople = '@ViewBag.PRInfo.ProvideMedicalHistoryPeople' == null ? "" : '@ViewBag.PRInfo.ProvideMedicalHistoryPeople';//供史人
            @*DiseasesClassification = '@ViewBag.PRInfo.DiseasesClassification' == null ? "" : '@ViewBag.PRInfo.DiseasesClassification';//病种分类*@
            DiseasesClassificationSupplement = '@ViewBag.PRInfo.DiseasesClassificationSupplement' == null ? "" : '@ViewBag.PRInfo.DiseasesClassificationSupplement';//病种分类补充

            //AlarmReason=//主诉
            //alert(AlarmReason);
            @*HistoryOfPresentIllness = '@ViewBag.PRInfo.HistoryOfPresentIllness' == null ? "" : '@ViewBag.PRInfo.HistoryOfPresentIllness';//现病史*@
            SaveOneselfMeasures = '@ViewBag.PRInfo.SaveOneselfMeasures' == null ? "" : '@ViewBag.PRInfo.SaveOneselfMeasures';//自救措施20150917
            PastMedicalHistory = '@ViewBag.PRInfo.PastMedicalHistory' == null ? "" : '@ViewBag.PRInfo.PastMedicalHistory';//既往病史
            @*PastMedicalHistorySupplement = '@ViewBag.PRInfo.PastMedicalHistorySupplement' == null ? "" : '@ViewBag.PRInfo.PastMedicalHistorySupplement';//既往病史补充描述*@
            IllState = '@ViewBag.PRInfo.IllnessClassification' == null ? "" : '@ViewBag.PRInfo.IllnessClassification';//病情分类
            IllStateReport = '@ViewBag.PRInfo.IllnessForecast' == null ? "" : '@ViewBag.PRInfo.IllnessForecast';//病情预报
            DeathCase = '@ViewBag.PRInfo.DeathCase' == null ? "" : '@ViewBag.PRInfo.DeathCase';//死亡病例--20160328修改为“呼吸心跳停止”
            DeathCertificate = '@ViewBag.PRInfo.DeathCertificate' == null ? "" : '@ViewBag.PRInfo.DeathCertificate';//死亡证明
            FirstAidEffect = '@ViewBag.PRInfo.FirstAidEffect' == null ? "" : '@ViewBag.PRInfo.FirstAidEffect';//急救效果
            MajorEmergencies = '@ViewBag.PRInfo.MajorEmergencies' == null ? "" : '@ViewBag.PRInfo.MajorEmergencies';//重大突发事件
            DiseaseCooperation = '@ViewBag.PRInfo.DiseaseCooperation' == null ? "" : '@ViewBag.PRInfo.DiseaseCooperation';//病家合作
            @*DiseaseNotCooperationSupplement = '@ViewBag.PRInfo.DiseaseNotCooperationSupplement' == null ? "" : '@ViewBag.PRInfo.DiseaseNotCooperationSupplement';//病家不合作补充说明*@

            SubmitLogo = '@ViewBag.PRInfo.SubmitLogo' == null ? "" : '@ViewBag.PRInfo.SubmitLogo';//提交标志
            SubCenterIFSpotChecks = '@ViewBag.PRInfo.SubCenterIFSpotChecks' == null ? "" : '@ViewBag.PRInfo.SubCenterIFSpotChecks';//分中心是否抽查
            SubCenterPerson = '@ViewBag.PRInfo.SubCenterPerson' == null ? "" : '@ViewBag.PRInfo.SubCenterPerson';//分中心抽查人员姓名
            SubCenterSpotChecksTime = '@ViewBag.PRInfo.SubCenterSpotChecksTime' == null ? "" : '@ViewBag.PRInfo.SubCenterSpotChecksTime';//分中心抽查时间
            SubCenterSpotChecksResult = '@ViewBag.PRInfo.SubCenterSpotChecksResult' == null ? "" : '@ViewBag.PRInfo.SubCenterSpotChecksResult';//分中心抽查结果
            SubCenterSpotChecksUnqualifiedReason = '@ViewBag.PRInfo.SubCenterSpotChecksUnqualifiedReason' == null ? "" : '@ViewBag.PRInfo.SubCenterSpotChecksUnqualifiedReason';//分中心抽查结果不合格原因
            @*SubCenterSpotChecksRmark = '@ViewBag.PRInfo.SubCenterSpotChecksRmark' == null ? "" : '@ViewBag.PRInfo.SubCenterSpotChecksRmark';//分中心抽查备注*@

            CenterIFSpotChecks = '@ViewBag.PRInfo.CenterIFSpotChecks' == null ? "" : '@ViewBag.PRInfo.CenterIFSpotChecks';//中心是否抽查
            CenterSpotChecksPerson = '@ViewBag.PRInfo.CenterSpotChecksPerson' == null ? "" : '@ViewBag.PRInfo.CenterSpotChecksPerson';//中心抽查人员姓名
            CenterSpotChecksTime = '@ViewBag.PRInfo.CenterSpotChecksTime' == null ? "" : '@ViewBag.PRInfo.CenterSpotChecksTime';//中心抽查时间
            CenterSpotChecksResult = '@ViewBag.PRInfo.CenterSpotChecksResult' == null ? "" : '@ViewBag.PRInfo.CenterSpotChecksResult';//中心抽查结果
            CenterSpotChecksUnqualifiedReason = '@ViewBag.PRInfo.CenterSpotChecksUnqualifiedReason' == null ? "" : '@ViewBag.PRInfo.CenterSpotChecksUnqualifiedReason';//中心抽查结果不合格原因
            @*CenterSpotChecksRmark = '@ViewBag.PRInfo.CenterSpotChecksRmark' == null ? "" : '@ViewBag.PRInfo.CenterSpotChecksRmark';//中心抽查备注*@
            NoticeAttendNursingLectures = '@ViewBag.PRInfo.IFNoticeAttendNursingLectures' == null ? "" : '@ViewBag.PRInfo.IFNoticeAttendNursingLectures';//通知参加本月病历小讲课-20151124
            ActualAttendNursingLectures = '@ViewBag.PRInfo.ActualAttendNursingLectures' == null ? "" : '@ViewBag.PRInfo.ActualAttendNursingLectures';//实际参加本月病历小讲课-20151124
            FillNoticeAttendNursingLectures = '@ViewBag.PRInfo.IFFillNoticeAttendNursingLectures' == null ? "" : '@ViewBag.PRInfo.IFFillNoticeAttendNursingLectures';//补通知参加本月病历小讲课-20151124
            FillActualAttendNursingLectures = '@ViewBag.PRInfo.FillActualAttendNursingLectures' == null ? "" : '@ViewBag.PRInfo.FillActualAttendNursingLectures';//补实际参加本月病历小讲课-20151124
            MedicalHistoryWritingProgress = '@ViewBag.PRInfo.IFMedicalHistoryWritingProgress' == null ? "" : '@ViewBag.PRInfo.IFMedicalHistoryWritingProgress';//病史书写进步-20151124
            NoticeAttendTime = '@ViewBag.PRInfo.NoticeAttendTime' == null ? "" : '@ViewBag.PRInfo.NoticeAttendTime';//通知参加小讲课填写时间-20151208
            NoticeAttendPerson = '@ViewBag.PRInfo.NoticeAttendPerson' == null ? "" : '@ViewBag.PRInfo.NoticeAttendPerson';//通知参加小讲课填写人-20151208
            ActualAttendTime = '@ViewBag.PRInfo.ActualAttendTime' == null ? "" : '@ViewBag.PRInfo.ActualAttendTime';//实际参加小讲课填写时间-20151208
            ActualAttendPerson = '@ViewBag.PRInfo.ActualAttendPerson' == null ? "" : '@ViewBag.PRInfo.ActualAttendPerson';//实际参加小讲课填写人-20151208
            FillNoticeAttendTime = '@ViewBag.PRInfo.FillNoticeAttendTime' == null ? "" : '@ViewBag.PRInfo.FillNoticeAttendTime';//补通知参加小讲课填写时间-20151208
            FillNoticeAttendPerson = '@ViewBag.PRInfo.FillNoticeAttendPerson' == null ? "" : '@ViewBag.PRInfo.FillNoticeAttendPerson';//补通知参加小讲课填写人-20151208
            FillActualAttendTime = '@ViewBag.PRInfo.FillActualAttendTime' == null ? "" : '@ViewBag.PRInfo.FillActualAttendTime';//补实际参加小讲课填写时间-20151208
            FillActualAttendPerson = '@ViewBag.PRInfo.FillActualAttendPerson' == null ? "" : '@ViewBag.PRInfo.FillActualAttendPerson';//补实际参加小讲课填写人-20151208
            Fill2NoticeAttendNursingLectures = '@ViewBag.PRInfo.IFFill2NoticeAttendNursingLectures' == null ? "" : '@ViewBag.PRInfo.IFFill2NoticeAttendNursingLectures';//补2通知参加本月病历小讲课-20151209
            Fill2NoticeAttendTime = '@ViewBag.PRInfo.Fill2NoticeAttendTime' == null ? "" : '@ViewBag.PRInfo.Fill2NoticeAttendTime';//补2通知参加小讲课填写时间-20151209
            Fill2NoticeAttendPerson = '@ViewBag.PRInfo.Fill2NoticeAttendPerson' == null ? "" : '@ViewBag.PRInfo.Fill2NoticeAttendPerson';//补2通知参加小讲课填写人-20151209
            Fill2ActualAttendNursingLectures = '@ViewBag.PRInfo.Fill2ActualAttendNursingLectures' == null ? "" : '@ViewBag.PRInfo.Fill2ActualAttendNursingLectures';//补2实际参加本月病历小讲课-20151209
            Fill2ActualAttendTime = '@ViewBag.PRInfo.Fill2ActualAttendTime' == null ? "" : '@ViewBag.PRInfo.Fill2ActualAttendTime';//补2实际参加小讲课填写时间-20151209
            Fill2ActualAttendPerson = '@ViewBag.PRInfo.Fill2ActualAttendPerson' == null ? "" : '@ViewBag.PRInfo.Fill2ActualAttendPerson';//补2实际参加小讲课填写人-20151209

            FormedConsent = '@ViewBag.PRInfo.FormedConsent' == null ? "" : '@ViewBag.PRInfo.FormedConsent';//告知签字-20151214

            MedicalGuide = '@ViewBag.PRInfo.MedicalGuide' == null ? "" : '@ViewBag.PRInfo.MedicalGuide';//远程医学指导-20180408 //add2023-02-10 plq 移植

            CenterFollowUp = '@ViewBag.PRInfo.CenterFollowUp' == null ? "" : '@ViewBag.PRInfo.CenterFollowUp';//中心回访-20160115
            @*CenterFollowUpSupplement = '@ViewBag.PRInfo.CenterFollowUpSupplement' == null ? "" : '@ViewBag.PRInfo.CenterFollowUpSupplement';//中心回访补充说明-20160115*@
            UpdateFormCompletePerson = '@ViewBag.PRInfo.UpdateFormCompletePerson' == null ? "" : '@ViewBag.PRInfo.UpdateFormCompletePerson';//自动归档后，退回的操作人员姓名-20160115
            UpdateFormCompleteTime = '@ViewBag.PRInfo.UpdateFormCompleteTime' == null ? "" : '@ViewBag.PRInfo.UpdateFormCompleteTime';//自动归档后，退回的操作时间-20160115

            MedicalStateCode = '@ViewBag.PRInfo.MedicalStateCode' == null ? "" : '@ViewBag.PRInfo.MedicalStateCode';//病历状态
            CPRSelect = '@ViewBag.PRInfo.CPRIFSuccess' == null ? "" : '@ViewBag.PRInfo.CPRIFSuccess';//心肺复苏是否成功
            IFRefuseTreatment = '@ViewBag.PRInfo.IFRefuseTreatment' == null ? "" : '@ViewBag.PRInfo.IFRefuseTreatment';//是否拒绝治疗,如果是，就不用填写救治记录了；
            RescueType = '@ViewBag.PRInfo.RescueType' == null ? "" : '@ViewBag.PRInfo.RescueType';//抢救类型
            AgentName = '@ViewBag.PRInfo.AgentName' == null ? "" : '@ViewBag.PRInfo.AgentName';//填写病历人员姓名
            AgentWorkID = '@ViewBag.PRInfo.AgentWorkID' == null ? "" : '@ViewBag.PRInfo.AgentWorkID';//填写病历人员工号


            @*DrivingTimeSupplement = '@ViewBag.PRInfo.DrivingTimeSupplement' == null ? "" : '@ViewBag.PRInfo.DrivingTimeSupplement';*@
            @*ArriveSceneTimeSupplement = '@ViewBag.PRInfo.ArriveSceneTimeSupplement' == null ? "" : '@ViewBag.PRInfo.ArriveSceneTimeSupplement';*@
            @*LeaveSceneTimeSupplement = '@ViewBag.PRInfo.LeaveSceneTimeSupplement' == null ? "" : '@ViewBag.PRInfo.LeaveSceneTimeSupplement';*@
            @*ArriveDestinationTimeSupplement = '@ViewBag.PRInfo.ArriveDestinationTimeSupplement' == null ? "" : '@ViewBag.PRInfo.ArriveDestinationTimeSupplement';*@

            @*Remark = '@ViewBag.PRInfo.Remark' == null ? "" : '@ViewBag.PRInfo.Remark';//备注-20150703*@
            //#endregion

            //#region 病历附表--体检等信息
            @*DischargeDiagnosis = '@ViewBag.PRAppendInfo.DischargeDiagnosis' == null ? "" : '@ViewBag.PRAppendInfo.DischargeDiagnosis';//出院诊断
                HospitalMeasuresTreatment = '@ViewBag.PRAppendInfo.HospitalMeasuresTreatment' == null ? "" : '@ViewBag.PRAppendInfo.HospitalMeasuresTreatment';//医院治疗措施
                AtPresentPatientSymptom = '@ViewBag.PRAppendInfo.AtPresentPatientSymptom' == null ? "" : '@ViewBag.PRAppendInfo.AtPresentPatientSymptom';//目前患者症状*@
            tiJianChoose = '@ViewBag.PRAppendInfo.PhysicalExaminationChoose' == null ? "" : '@ViewBag.PRAppendInfo.PhysicalExaminationChoose';//体检选择
            TChoose = '@ViewBag.PRAppendInfo.TChoose' == null ? "" : '@ViewBag.PRAppendInfo.TChoose';//T选择
            tT = '@ViewBag.PRAppendInfo.T' == null ? "" : '@ViewBag.PRAppendInfo.T';//T
            PChoose = '@ViewBag.PRAppendInfo.PChoose' == null ? "" : '@ViewBag.PRAppendInfo.PChoose';//P选择
            tP = '@ViewBag.PRAppendInfo.P' == null ? "" : '@ViewBag.PRAppendInfo.P';//P
            RChoose = '@ViewBag.PRAppendInfo.RChoose' == null ? "" : '@ViewBag.PRAppendInfo.RChoose';//R选择
            tR = '@ViewBag.PRAppendInfo.R' == null ? "" : '@ViewBag.PRAppendInfo.R';//R
            BP = '@ViewBag.PRAppendInfo.BPChoose' == null ? "" : '@ViewBag.PRAppendInfo.BPChoose';//BP
            tBP1 = '@ViewBag.PRAppendInfo.BP1' == null ? "" : '@ViewBag.PRAppendInfo.BP1';//BP1
            tBP2 = '@ViewBag.PRAppendInfo.BP2' == null ? "" : '@ViewBag.PRAppendInfo.BP2';//BP2
            kPa1 = '@ViewBag.PRAppendInfo.BP3' == null ? "" : '@ViewBag.PRAppendInfo.BP3';//BP3
            kPa2 = '@ViewBag.PRAppendInfo.BP4' == null ? "" : '@ViewBag.PRAppendInfo.BP4';//BP4
            Consciousness = '@ViewBag.PRAppendInfo.Consciousness' == null ? "" : '@ViewBag.PRAppendInfo.Consciousness';//意识
            Pupilla = '@ViewBag.PRAppendInfo.Pupilla' == null ? "" : '@ViewBag.PRAppendInfo.Pupilla';//瞳孔
            @*PupillaSupplement = '@ViewBag.PRAppendInfo.PupillaSupplement' == null ? "" : '@ViewBag.PRAppendInfo.PupillaSupplement';//瞳孔补充*@
            LightReflex = '@ViewBag.PRAppendInfo.LightReflex' == null ? "" : '@ViewBag.PRAppendInfo.LightReflex';//对光反射
            Skin = '@ViewBag.PRAppendInfo.Skin' == null ? "" : '@ViewBag.PRAppendInfo.Skin';//皮肤
            @*SkinSupplement = '@ViewBag.PRAppendInfo.SkinSupplement' == null ? "" : '@ViewBag.PRAppendInfo.SkinSupplement';//皮肤补充*@
            Head = '@ViewBag.PRAppendInfo.Head' == null ? "" : '@ViewBag.PRAppendInfo.Head';//头部
            @*HeadSupplement = '@ViewBag.PRAppendInfo.HeadSupplement' == null ? "" : '@ViewBag.PRAppendInfo.HeadSupplement';//头部补充*@
            Neck = '@ViewBag.PRAppendInfo.Neck' == null ? "" : '@ViewBag.PRAppendInfo.Neck';//颈部
            @*NeckSupplement = '@ViewBag.PRAppendInfo.NeckSupplement' == null ? "" : '@ViewBag.PRAppendInfo.NeckSupplement';//颈部补充*@
            Chest = '@ViewBag.PRAppendInfo.Chest' == null ? "" : '@ViewBag.PRAppendInfo.Chest';//胸部
            @*ChestSupplement = '@ViewBag.PRAppendInfo.ChestSupplement' == null ? "" : '@ViewBag.PRAppendInfo.ChestSupplement';//胸部补充*@
            ChestExtrusionTest = '@ViewBag.PRAppendInfo.ChestExtrusionTest' == null ? "" : '@ViewBag.PRAppendInfo.ChestExtrusionTest';//胸廓挤压试验
            Lungs = '@ViewBag.PRAppendInfo.Lungs' == null ? "" : '@ViewBag.PRAppendInfo.Lungs';//肺脏
            TwoLungBreathingSound = '@ViewBag.PRAppendInfo.TwoLungBreathingSound' == null ? "" : '@ViewBag.PRAppendInfo.TwoLungBreathingSound';//肺脏--两肺呼吸音
            LeftLung = '@ViewBag.PRAppendInfo.LeftLung' == null ? "" : '@ViewBag.PRAppendInfo.LeftLung';//左肺
            RightLung = '@ViewBag.PRAppendInfo.RightLung' == null ? "" : '@ViewBag.PRAppendInfo.RightLung';//右肺
            @*LungsSupplement = '@ViewBag.PRAppendInfo.LungsSupplement' == null ? "" : '@ViewBag.PRAppendInfo.LungsSupplement';//肺脏补充*@
            Heart = '@ViewBag.PRAppendInfo.Heart' == null ? "" : '@ViewBag.PRAppendInfo.Heart';//心脏
            @*HeartRate = '@ViewBag.PRAppendInfo.HeartRate' == null ? "" : '@ViewBag.PRAppendInfo.HeartRate';//心率*@
            HeartRhythm = '@ViewBag.PRAppendInfo.HeartRhythm' == null ? "" : '@ViewBag.PRAppendInfo.HeartRhythm';//心脏心律
            HeartMurmur = '@ViewBag.PRAppendInfo.HeartMurmur' == null ? "" : '@ViewBag.PRAppendInfo.HeartMurmur';//心脏杂音
            @*HeartSupplement = '@ViewBag.PRAppendInfo.HeartSupplement' == null ? "" : '@ViewBag.PRAppendInfo.HeartSupplement';//心脏补充*@
            Abdomen = '@ViewBag.PRAppendInfo.Abdomen' == null ? "" : '@ViewBag.PRAppendInfo.Abdomen';//腹部
            @*AbdomenSupplement = '@ViewBag.PRAppendInfo.AbdomenSupplement' == null ? "" : '@ViewBag.PRAppendInfo.AbdomenSupplement';//腹部补充*@
            Spine = '@ViewBag.PRAppendInfo.Spine' == null ? "" : '@ViewBag.PRAppendInfo.Spine';//脊柱
            @*SpineSupplement = '@ViewBag.PRAppendInfo.SpineSupplement' == null ? "" : '@ViewBag.PRAppendInfo.SpineSupplement';//脊柱补充*@
            Limbs = '@ViewBag.PRAppendInfo.Limbs' == null ? "" : '@ViewBag.PRAppendInfo.Limbs';//四肢
            @*LimbsSupplement = '@ViewBag.PRAppendInfo.LimbsSupplement' == null ? "" : '@ViewBag.PRAppendInfo.LimbsSupplement';//四肢补充*@
            PelvicExtrusionTest = '@ViewBag.PRAppendInfo.PelvicExtrusionTest' == null ? "" : '@ViewBag.PRAppendInfo.PelvicExtrusionTest';//骨盆挤压试验
            NervousSystem = '@ViewBag.PRAppendInfo.NervousSystem' == null ? "" : '@ViewBag.PRAppendInfo.NervousSystem';//神经系统
            @*NervousSystemFace = '@ViewBag.PRAppendInfo.NervousSystemFace' == null ? "" : '@ViewBag.PRAppendInfo.NervousSystemFace';//神经系统-面部
                NervousSystemSpeech = '@ViewBag.PRAppendInfo.NervousSystemSpeech' == null ? "" : '@ViewBag.PRAppendInfo.NervousSystemSpeech';//神经系统-言语*@
            LeftUpperExtremity = '@ViewBag.PRAppendInfo.LeftUpperExtremity' == null ? "" : '@ViewBag.PRAppendInfo.LeftUpperExtremity';//神经系统（肌力--左上肢
            LeftLowerExtremity = '@ViewBag.PRAppendInfo.LeftLowerExtremity' == null ? "" : '@ViewBag.PRAppendInfo.LeftLowerExtremity';//神经系统（肌力--左下肢
            RightUpperLimb = '@ViewBag.PRAppendInfo.RightUpperLimb' == null ? "" : '@ViewBag.PRAppendInfo.RightUpperLimb';//神经系统（肌力--右上肢
            RightLowerLimb = '@ViewBag.PRAppendInfo.RightLowerLimb' == null ? "" : '@ViewBag.PRAppendInfo.RightLowerLimb';//神经系统--肌张力
            MuscularTension = '@ViewBag.PRAppendInfo.MuscularTension' == null ? "" : '@ViewBag.PRAppendInfo.MuscularTension';//神经系统（肌力--右下肢
            BabinskiSign = '@ViewBag.PRAppendInfo.BabinskiSign' == null ? "" : '@ViewBag.PRAppendInfo.BabinskiSign';//神经系统--巴氏征
            @*NervousSystemSupplement = '@ViewBag.PRAppendInfo.NervousSystemSupplement' == null ? "" : '@ViewBag.PRAppendInfo.NervousSystemSupplement';//神经系统--补充描述*@
            ObstetricExamination = '@ViewBag.PRAppendInfo.ObstetricExamination' == null ? "" : '@ViewBag.PRAppendInfo.ObstetricExamination';//产科检查选择
            @*GongGaoCartilagoEnsiformis = '@ViewBag.PRAppendInfo.GongGaoCartilagoEnsiformis' == null ? "" : '@ViewBag.PRAppendInfo.GongGaoCartilagoEnsiformis';//产科检查（宫高：剑突下）
                GongGaoNavel = '@ViewBag.PRAppendInfo.GongGaoNavel' == null ? "" : '@ViewBag.PRAppendInfo.GongGaoNavel';//产科检查（宫高：脐上）
                GongGaoSuprapubic = '@ViewBag.PRAppendInfo.GongGaoSuprapubic' == null ? "" : '@ViewBag.PRAppendInfo.GongGaoSuprapubic';//产科检查（宫高：耻骨上）
                GongGaoBelowUmbilicus = '@ViewBag.PRAppendInfo.GongGaoBelowUmbilicus' == null ? "" : '@ViewBag.PRAppendInfo.GongGaoBelowUmbilicus';//产科检查（宫高：脐下）
                ObstetricExaminationSupplement = '@ViewBag.PRAppendInfo.ObstetricExaminationSupplement' == null ? "" : '@ViewBag.PRAppendInfo.ObstetricExaminationSupplement';//产科检查补充描述*@

            @*OtherNecessaryRecord = '@ViewBag.PRAppendInfo.OtherNecessaryRecord' == null ? "" : '@ViewBag.PRAppendInfo.OtherNecessaryRecord';//其他必要记录*@

            OpenReaction = '@ViewBag.PRAppendInfo.OpenReactionScore' == null ? "" : '@ViewBag.PRAppendInfo.OpenReactionScore';//睁眼反应
            LanguageReaction = '@ViewBag.PRAppendInfo.LanguageReactionScore' == null ? "" : '@ViewBag.PRAppendInfo.LanguageReactionScore';//语言反应
            MotionResponse = '@ViewBag.PRAppendInfo.MotionResponseScore' == null ? "" : '@ViewBag.PRAppendInfo.MotionResponseScore';//运动反应
            GCSScore = '@ViewBag.PRAppendInfo.GCSScore' == null ? "" : '@ViewBag.PRAppendInfo.GCSScore';//GCS评分累计评分

            Position = '@ViewBag.PRAppendInfo.Position' == null ? "" : '@ViewBag.PRAppendInfo.Position';//部位
            DamageWay = '@ViewBag.PRAppendInfo.DamageWay' == null ? "" : '@ViewBag.PRAppendInfo.DamageWay';//损伤方式
            CirculationChange = '@ViewBag.PRAppendInfo.CirculationChange' == null ? "" : '@ViewBag.PRAppendInfo.CirculationChange';//循环改变
            BreathingChange = '@ViewBag.PRAppendInfo.BreathingChange' == null ? "" : '@ViewBag.PRAppendInfo.BreathingChange';//BP4
            ConsciousnessChange = '@ViewBag.PRAppendInfo.ConsciousnessChange' == null ? "" : '@ViewBag.PRAppendInfo.ConsciousnessChange';//意识改变
            TIScore = '@ViewBag.PRAppendInfo.TIScore' == null ? "" : '@ViewBag.PRAppendInfo.TIScore';//TI评分累计分数

            HeartRatePerMinute = '@ViewBag.PRAppendInfo.HeartRatePerMinute' == null ? "" : '@ViewBag.PRAppendInfo.HeartRatePerMinute';//每分钟心率
            Breathing = '@ViewBag.PRAppendInfo.Breathing' == null ? "" : '@ViewBag.PRAppendInfo.Breathing';//呼吸
            MuscleTension = '@ViewBag.PRAppendInfo.MuscleTension' == null ? "" : '@ViewBag.PRAppendInfo.MuscleTension';//肌张力
            LaryngealReflex = '@ViewBag.PRAppendInfo.LaryngealReflex' == null ? "" : '@ViewBag.PRAppendInfo.LaryngealReflex';//喉反射
            SkinColor = '@ViewBag.PRAppendInfo.SkinColor' == null ? "" : '@ViewBag.PRAppendInfo.SkinColor';//皮肤颜色
            ApgarScore = '@ViewBag.PRAppendInfo.ApgarScore' == null ? "" : '@ViewBag.PRAppendInfo.ApgarScore';//Apgar评分累计评分

            ECGSelect = '@ViewBag.PRAppendInfo.ECGImpressionSelect' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionSelect';//心电图印象选择
            @*ECGImpression = '@ViewBag.PRAppendInfo.ECGImpression' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpression';//心电图印象*@
            @*ECGImpressionCodes = '@ViewBag.PRAppendInfo.ECGImpressionCodes' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionCodes';//心电图印象编码串*@
            @*ECGImpressionSupplement = '@ViewBag.PRAppendInfo.ECGImpressionSupplement' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionSupplement';//心电图印象其他*@
            @*ECGImpressionRetestI = '@ViewBag.PRAppendInfo.ECGImpressionRetestI' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionRetestI';//心电图印象复查1*@
            @*ECGImpressionRetestICodes = '@ViewBag.PRAppendInfo.ECGImpressionRetestICodes' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionRetestICodes';//心电图印象复查1编码串*@
            @*ECGImpressionRetestISupplement = '@ViewBag.PRAppendInfo.ECGImpressionRetestISupplement' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionRetestISupplement';//心电图印象复查1其他*@
            @*ECGImpressionRetestII = '@ViewBag.PRAppendInfo.ECGImpressionRetestII' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionRetestII';//心电图印象复查2*@
            @*ECGImpressionRetestIICodes = '@ViewBag.PRAppendInfo.ECGImpressionRetestIICodes' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionRetestIICodes';//心电图印象复查2编码串*@
            @*ECGImpressionRetestIISupplement = '@ViewBag.PRAppendInfo.ECGImpressionRetestIISupplement' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionRetestIISupplement';//心电图印象复查2其他*@
            TwelveDaoLian = '@ViewBag.PRAppendInfo.IF12DaoLian' == null ? "" : '@ViewBag.PRAppendInfo.IF12DaoLian';//12导联-20151124

            BloodSugarSelect = '@ViewBag.PRAppendInfo.BloodSugarSelect' == null ? "" : '@ViewBag.PRAppendInfo.BloodSugarSelect';//血糖选择
            @*BloodSugar = '@ViewBag.PRAppendInfo.BloodSugar' == null ? "" : '@ViewBag.PRAppendInfo.BloodSugar';//血糖
                BloodSugarRetestI = '@ViewBag.PRAppendInfo.BloodSugarRetestI' == null ? "" : '@ViewBag.PRAppendInfo.BloodSugarRetestI';//血糖复查1
                BloodSugarRetestII = '@ViewBag.PRAppendInfo.BloodSugarRetestII' == null ? "" : '@ViewBag.PRAppendInfo.BloodSugarRetestII';//血糖复查2*@

            BloodOxygenSelect = '@ViewBag.PRAppendInfo.BloodOxygenSaturationSelect' == null ? "" : '@ViewBag.PRAppendInfo.BloodOxygenSaturationSelect';//血氧饱和度选择
            @*BloodOxygen = '@ViewBag.PRAppendInfo.BloodOxygenSaturation' == null ? "" : '@ViewBag.PRAppendInfo.BloodOxygenSaturation';//血氧饱和度
                BloodOxygenRetestI = '@ViewBag.PRAppendInfo.BloodOxygenSaturationRetestI' == null ? "" : '@ViewBag.PRAppendInfo.BloodOxygenSaturationRetestI';//血氧饱和度复查1
                BloodOxygenRetestII = '@ViewBag.PRAppendInfo.BloodOxygenSaturationRetestII' == null ? "" : '@ViewBag.PRAppendInfo.BloodOxygenSaturationRetestII';//血氧饱和度复查2*@

            @*SymptomPendingInvestigation = '@ViewBag.PRAppendInfo.SymptomPendingInvestigation' == null ? "" : '@ViewBag.PRAppendInfo.SymptomPendingInvestigation';//初步印象--症状待查*@
            @*SymptomPendingInvestigationCodes = '@ViewBag.PRAppendInfo.SymptomPendingInvestigationCodes' == null ? "" : '@ViewBag.PRAppendInfo.SymptomPendingInvestigationCodes';//初步印象--症状待查编码串*@
            @*SymptomPendingInvestigationSupplement = '@ViewBag.PRAppendInfo.SymptomPendingInvestigationSupplement' == null ? "" : '@ViewBag.PRAppendInfo.SymptomPendingInvestigationSupplement';//初步印象--症状待查其他*@
            @*PrimaryDiagnoses = '@ViewBag.PRAppendInfo.FirstImpression' == null ? "" : '@ViewBag.PRAppendInfo.FirstImpression';//初步印象*@
            @*PrimaryDiagnosesCodes = '@ViewBag.PRAppendInfo.FirstImpressionCodes' == null ? "" : '@ViewBag.PRAppendInfo.FirstImpressionCodes';//初步印象编码串*@
            @*PrimaryDiagnosesSupplement = '@ViewBag.PRAppendInfo.FirstImpressionSupplement' == null ? "" : '@ViewBag.PRAppendInfo.FirstImpressionSupplement';//初步印象其他*@

            //2022-10-12 zch //add2024-08-23 plq 移植
            ECGImpressionFirstTime = '@ViewBag.PRAppendInfo.ECGImpressionFirstTime' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionFirstTime';
            ECGImpressionFirstTime = ECGImpressionFirstTime.replace(/\//g, "-");
            ECGImpressionLastTime = '@ViewBag.PRAppendInfo.ECGImpressionLastTime' == null ? "" : '@ViewBag.PRAppendInfo.ECGImpressionLastTime';
            ECGImpressionLastTime = ECGImpressionLastTime.replace(/\//g, "-");

            //2024-03-04 zch //add2024-08-23 plq 移植
            NotSufficientRevivingReason = '@ViewBag.PRAppendInfo.NotSufficientRevivingReason' == null ? "" : '@ViewBag.PRAppendInfo.NotSufficientRevivingReason';
            NotSufficientRevivingReasonSupplement = '@ViewBag.PRAppendInfo.NotSufficientRevivingReasonSupplement' == null ? "" : '@ViewBag.PRAppendInfo.NotSufficientRevivingReasonSupplement';
            //#endregion

            //#region 病历附表--心肺复苏
            Witness = '@ViewBag.PRCPRInfo.Witness' == null ? "" : '@ViewBag.PRCPRInfo.Witness';//目击者
            CarToBeforeCPR = '@ViewBag.PRCPRInfo.CarToBeforeCPR' == null ? "" : '@ViewBag.PRCPRInfo.CarToBeforeCPR';//车到前CPR
            CarToBeforeDefibrillation = '@ViewBag.PRCPRInfo.CarToBeforeDefibrillation' == null ? "" : '@ViewBag.PRCPRInfo.CarToBeforeDefibrillation';//车到前除颤
            CardiacArrestReason = '@ViewBag.PRCPRInfo.CardiacArrestReason' == null ? "" : '@ViewBag.PRCPRInfo.CardiacArrestReason';//心脏骤停可能原因
            @*CardiacArrestReasonSupplement = '@ViewBag.PRCPRInfo.CardiacArrestReasonSupplement' == null ? "" : '@ViewBag.PRCPRInfo.CardiacArrestReasonSupplement';//心脏骤停补充说明
                AfterResuscitationECGDiagnosis = '@ViewBag.PRCPRInfo.AfterResuscitationECGDiagnosis' == null ? "" : '@ViewBag.PRCPRInfo.AfterResuscitationECGDiagnosis';//复苏后心电图诊断
                AfterResuscitationBP = '@ViewBag.PRCPRInfo.AfterResuscitationBP' == null ? "" : '@ViewBag.PRCPRInfo.AfterResuscitationBP';//复苏后BP
                AfterResuscitationSaO2 = '@ViewBag.PRCPRInfo.AfterResuscitationSaO2' == null ? "" : '@ViewBag.PRCPRInfo.AfterResuscitationSaO2';//复苏后SaO2*@
            PulsationAppearTime = '@ViewBag.PRCPRInfo.PulsationAppearTime' == null ? "" : '@ViewBag.PRCPRInfo.PulsationAppearTime';//颈A搏动出现时间
            BreatheAppearTime = '@ViewBag.PRCPRInfo.BreatheAppearTime' == null ? "" : '@ViewBag.PRCPRInfo.BreatheAppearTime';//自主呼吸出现时间
            IFAdmittedToHospital = '@ViewBag.PRCPRInfo.IFAdmittedToHospital' == null ? "" : '@ViewBag.PRCPRInfo.IFAdmittedToHospital';//是否入院
            @*IFLeaveHospital = '@ViewBag.PRCPRInfo.IFLeaveHospital' == null ? "" : '@ViewBag.PRCPRInfo.IFLeaveHospital';//是否出院*@
            LeaveHospitalDate = '@ViewBag.PRCPRInfo.LeaveHospitalDate' == null ? "" : '@ViewBag.PRCPRInfo.LeaveHospitalDate';//复苏后出院日期
            LeaveHospitalCPC = '@ViewBag.PRCPRInfo.LeaveHospitalCPC' == null ? "" : '@ViewBag.PRCPRInfo.LeaveHospitalCPC';//出院时CPC数值
            VerifyResults = '@ViewBag.PRCPRInfo.VerifyResults' == null ? "" : '@ViewBag.PRCPRInfo.VerifyResults';//急救科核实结果
            @*VerifyPerson = '@ViewBag.PRCPRInfo.VerifyPerson' == null ? "" : '@ViewBag.PRCPRInfo.VerifyPerson';//核实人员*@
            VerifyTime = '@ViewBag.PRCPRInfo.VerifyTime' == null ? "" : '@ViewBag.PRCPRInfo.VerifyTime';//核实时间
            RegistrationPerson = '@ViewBag.PRCPRInfo.RegistrationPerson' == null ? "" : '@ViewBag.PRCPRInfo.RegistrationPerson';//登记人(可能页面不需要)
            RegistrationTime = '@ViewBag.PRCPRInfo.RegistrationTime' == null ? "" : '@ViewBag.PRCPRInfo.RegistrationTime';//登记时间(可能页面不需要)

            AttackPlace = '@ViewBag.PRCPRInfo.AttackPlace' == null ? "" : '@ViewBag.PRCPRInfo.AttackPlace';//发病地点20150917
            BeforeResuscitationECGDiagnosis = '@ViewBag.PRCPRInfo.BeforeResuscitationECGDiagnosis' == null ? "" : '@ViewBag.PRCPRInfo.BeforeResuscitationECGDiagnosis';//复苏前心电图诊断20150917
            CPRArriveSceneTime = '@ViewBag.PRCPRInfo.ArriveSceneTime' == null ? "" : '@ViewBag.PRCPRInfo.ArriveSceneTime';//CPR到达现场时间20150917
            CPRArriveSceneTime = CPRArriveSceneTime.replace(/\//g, "-"); //不能识别/,替换为-
            ChestCompression = '@ViewBag.PRCPRInfo.ChestCompression' == null ? "" : '@ViewBag.PRCPRInfo.ChestCompression';//胸外按压20150917
            StartChestCompressionTime = '@ViewBag.PRCPRInfo.StartChestCompressionTime' == null ? "" : '@ViewBag.PRCPRInfo.StartChestCompressionTime';//开始胸外按压时间20150917
            StartChestCompressionTime = StartChestCompressionTime.replace(/\//g, "-"); //不能识别/,替换为-
            Defibrillation = '@ViewBag.PRCPRInfo.Defibrillation' == null ? "" : '@ViewBag.PRCPRInfo.Defibrillation';//除颤20150917
            FirstDefibrillationTime = '@ViewBag.PRCPRInfo.FirstDefibrillationTime' == null ? "" : '@ViewBag.PRCPRInfo.FirstDefibrillationTime';//首次除颤时间20150917
            FirstDefibrillationTime = FirstDefibrillationTime.replace(/\//g, "-"); //不能识别/,替换为-
            IntervalTime = '@ViewBag.PRCPRInfo.IntervalTime' == null ? "" : '@ViewBag.PRCPRInfo.IntervalTime';//间隔时间20150917
            DoctorFollowUpReason = '@ViewBag.PRCPRInfo.DoctorFollowUpReason' == null ? "" : '@ViewBag.PRCPRInfo.DoctorFollowUpReason';//回访原因20150917

            CenterIFAuditForXFFS = '@ViewBag.PRCPRInfo.CenterIFAuditForXFFS' == null ? "" : '@ViewBag.PRCPRInfo.CenterIFAuditForXFFS';//中心是否审核（心肺复苏）
            CenterAuditPerson = '@ViewBag.PRCPRInfo.CenterAuditPerson' == null ? "" : '@ViewBag.PRCPRInfo.CenterAuditPerson';//中心审核人员姓名（心肺复苏）
            CenterAuditTime = '@ViewBag.PRCPRInfo.CenterAuditTime' == null ? "" : '@ViewBag.PRCPRInfo.CenterAuditTime';//中心审核时间（心肺复苏）
            CenterAuditResult = '@ViewBag.PRCPRInfo.CenterAuditResult' == null ? "" : '@ViewBag.PRCPRInfo.CenterAuditResult';//中心审核结果（心肺复苏）
            CenterNotThroughReason = '@ViewBag.PRCPRInfo.CenterNotThroughReason' == null ? "" : '@ViewBag.PRCPRInfo.CenterNotThroughReason';//中心不通过原因（心肺复苏）

            WitnessHeartbeatBreatheArrest = '@ViewBag.PRCPRInfo.WitnessHeartbeatBreatheArrest' == null ? "" : '@ViewBag.PRCPRInfo.WitnessHeartbeatBreatheArrest';//目击下心跳呼吸骤停20160107
            @*DoctorFollowUp = '@ViewBag.PRCPRInfo.DoctorFollowUp' == null ? "" : '@ViewBag.PRCPRInfo.DoctorFollowUp';//医生随访(回访)*@
            //#endregion

            //#endregion

            //#region 为页面控件赋值
            $('#HidMedicalStateCode').val(MedicalStateCode);//20161129--增加病历状态隐藏

            SetRadioOfList("alarmEventType", AlarmType); //事件类型
            SetRadio("EmptyReason", EmptyReason); //空车原因-20150909
            //$('#EmptyReasonSupplement').val(EmptyReasonSupplement); //空车原因补充
            //$('#Name').val(Name); //姓名
            SetRadio("IsSeePeople", IsSeePeople);
            SetRadioOfList("Sex", Sex); //性别
            $('#Age').numberbox('setValue', Age);//年龄
            $('#AgeType').combobox('setValue', AgeType); // 年龄单位
            $('#Station').combobox('setValue', StationCode.trim() == "" ? "--请选择--" : StationCode); // 分站
            //$('#LocalAddress').val(LocalAddress);//呼救地址

            var lblDrivingTime = $('#lblDrivingTime').html();//出车时间--20160127
            var lblArriveSceneTime = $('#lblArriveSceneTime').html();//到达现场
            var lblLeaveSceneTime = $('#lblLeaveSceneTime').html();//离开现场
            var lblArriveDestinationTime = $('#lblArriveDestinationTime').html();//到达时间

            $('#DrivingTime').datetimebox('setValue', DrivingTime == "" ? lblDrivingTime : DrivingTime);//出车时间
            $('#ArriveSceneTime').datetimebox('setValue', ArriveSceneTime == "" ? lblArriveSceneTime : ArriveSceneTime);//到达现场时间
            $('#SendAddress').combobox('setValue', SendAddress == "" ? "--请选择--" : SendAddress);//送往地点
            $('#LeaveSceneTime').datetimebox('setValue', LeaveSceneTime == "" ? lblLeaveSceneTime : LeaveSceneTime);//离开现场时间
            $('#ArriveDestinationTime').datetimebox('setValue', ArriveDestinationTime == "" ? lblArriveDestinationTime : ArriveDestinationTime);//到达时间
            //$('#DoctorAndNurse').val(DoctorAndNurse);//急救医护
            //$('#TeachingPractice').val(TeachingPractice);//带教实习
            //$('#Driver').val(Driver);//驾驶员
            //$('#StretcherBearers').val(StretcherBearers);//担架员
            SetCheckBoxOfList("ProvideMedicalHistoryPeople", ProvideMedicalHistoryPeople); //供史人
            SetCheckBoxOfList("DiseasesClassification", $('#HidDiseasesClassification').val()); //病种分类--20160304修改我取隐藏值
            //$('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
            //$('#ContactTelephone').val(ContactTelephone);//患者联系方式

            //$('#tAlarmReasons').val(AlarmReason == "" || AlarmReason == null ? "" : AlarmReason.trim());//赋值给主诉隐藏值
            //$('#tAlarmReason').textbox('setText', AlarmReason);//主诉.replace(/&#160;/g, " ")
            //$('#tAlarmReason').val(AlarmReason == "" || AlarmReason == null ? "" : AlarmReason.trim());//主诉--测试

            //$('#tHistoryOfPresentIllness').val(HistoryOfPresentIllness == "" || HistoryOfPresentIllness == null ? "" : HistoryOfPresentIllness.trim());//现病史--测试
            //$('#HidHistoryOfPresentIllness').val(HistoryOfPresentIllness == "" || HistoryOfPresentIllness == null ? "" : HistoryOfPresentIllness.trim());//赋值给现病史隐藏值
            //$('#tHistoryOfPresentIllness').textbox('setValue', HistoryOfPresentIllness == "" || HistoryOfPresentIllness == null ? "" : HistoryOfPresentIllness.trim().replace(/&#160;/g, "    "));//现病史

            SetRadioOfList("SaveOneselfMeasures", SaveOneselfMeasures); //自救措施-20150917
            SetCheckBoxOfList("PastMedicalHistory", PastMedicalHistory); //既往病史
            //$('#PastMedicalHistorySupplement').val(PastMedicalHistorySupplement);//既往病史的补充说明

            //转(出)院病情记录
            //$('#DischargeDiagnosis').val(DischargeDiagnosis);//转出院诊断
            //$('#HospitalMeasuresTreatment').val(HospitalMeasuresTreatment);//院内主要治疗措施
            //$('#AtPresentPatientSymptom').val(AtPresentPatientSymptom);//目前患者症状

            //#region 体检赋值
            SetRadioOfList("tiJianChoose", tiJianChoose == "" ? "请选择" : tiJianChoose); //体检选择--暂时注释
            $('#TChoose').combobox('setValue', TChoose == "" ? "--请选择--" : TChoose);//T选择
            //$('#tT').val(tT);//T
            $('#tT').numberbox('setValue', tT);//T
            $('#PChoose').combobox('setValue', PChoose == "" ? "--请选择--" : PChoose);//P选择
            //$('#tP').val(tP);//P
            $('#tP').numberbox('setValue', tP);//P
            $('#RChoose').combobox('setValue', RChoose == "" ? "--请选择--" : RChoose);//R选择
            //$('#tR').val(tR);//R
            $('#tR').numberbox('setValue', tR);//R
            $('#BP').combobox('setValue', BP == "" ? "--请选择--" : BP);//意识
            $('#tBP1').numberbox('setValue', tBP1);//
            $('#tBP2').numberbox('setValue', tBP2);//
            $('#kPa1').numberbox('setValue', kPa1);//
            $('#kPa2').numberbox('setValue', kPa2);//
            $('#Consciousness').combobox('setValue', Consciousness == "" ? "--请选择--" : Consciousness);//意识
            $('#Pupilla').combobox('setValue', Pupilla == "" ? "--请选择--" : Pupilla);//瞳孔
            //$('#PupillaSupplement').val(PupillaSupplement);//瞳孔补充描述
            $('#LightReflex').combobox('setValue', LightReflex == "" ? "--请选择--" : LightReflex);//对光反射
            SetCheckBoxOfList("BodyFigureModels.CheckModelIDs", Skin); //皮肤
            //$('#SkinSupplement').val(SkinSupplement);//皮肤补充描述
            SetCheckBoxOfList("HeadModels.CheckModelIDs", Head); //头部
            //$('#HeadSupplement').val(HeadSupplement);//头部补充描述
            SetCheckBoxOfList("NeckModels.CheckModelIDs", Neck); //颈部
            //$('#NeckSupplement').val(NeckSupplement);//颈部补充描述
            SetCheckBoxOfList("ChestModels.CheckModelIDs", Chest); //胸部
            //$('#ChestSupplement').val(ChestSupplement);//胸部补充描述
            SetRadioOfList("ChestExtrusionTest", ChestExtrusionTest); //胸部--胸廓挤压试验
            SetCheckBoxOfList("LungModels.CheckModelIDs", Lungs); //肺脏
            $('#TwoLungBreathingSound').combobox('setValue', TwoLungBreathingSound == "" ? "--请选择--" : TwoLungBreathingSound);//肺脏--两肺呼吸音
            SetCheckBoxOfList("LungLeftModels.CheckModelIDs", LeftLung); //肺脏--左肺
            SetCheckBoxOfList("LungRightModels.CheckModelIDs", RightLung); //肺脏--右肺
            //$('#LungsSupplement').val(LungsSupplement);//肺脏--补充描述

            $('#Heart').combobox('setValue', Heart == "" ? "--请选择--" : Heart);//心脏
            //$('#HeartRate').val(HeartRate);//心率
            $('#HeartRhythm').combobox('setValue', HeartRhythm == "" ? "--请选择--" : HeartRhythm);//心律
            $('#HeartMurmur').combobox('setValue', HeartMurmur == "" ? "--请选择--" : HeartMurmur);//杂音
            //$('#HeartSupplement').val(HeartSupplement);//心脏--补充描述

            SetCheckBoxOfList("FuBuModels.CheckModelIDs", Abdomen); //腹部
            //$('#AbdomenSupplement').val(AbdomenSupplement);//腹部--补充描述
            SetCheckBoxOfList("JiZhuModels.CheckModelIDs", Spine); //脊柱
            //$('#SpineSupplement').val(SpineSupplement);//脊柱--补充描述
            SetCheckBoxOfList("LimbModels.CheckModelIDs", Limbs); //四肢
            //$('#LimbsSupplement').val(LimbsSupplement);//四肢--补充描述
            SetRadioOfList("PelvicExtrusionTest", PelvicExtrusionTest); //四肢--骨盆挤压试验

            $('#NervousSystem').combobox('setValue', NervousSystem == "" ? "--请选择--" : NervousSystem);//神经系统选择
            //$('#NervousSystemSupplement').val(NervousSystemSupplement);//神经系统--补充描述
            //$('#NervousSystemFace').val(NervousSystemFace);//神经系统-面部
            //$('#NervousSystemSpeech').val(NervousSystemSpeech);//神经系统-言语
            $('#LeftUpperExtremity').combobox('setValue', LeftUpperExtremity == "" ? "请选择" : LeftUpperExtremity);//神经系统（肌力--左上肢
            $('#LeftLowerExtremity').combobox('setValue', LeftLowerExtremity == "" ? "请选择" : LeftLowerExtremity);//神经系统（肌力--左下肢
            $('#RightUpperLimb').combobox('setValue', RightUpperLimb == "" ? "请选择" : RightUpperLimb);//神经系统（肌力--右上肢
            $('#RightLowerLimb').combobox('setValue', RightLowerLimb == "" ? "请选择" : RightLowerLimb);//神经系统（肌力--右下肢
            $('#MuscularTension').combobox('setValue', MuscularTension == "" ? "--请选择--" : MuscularTension);//神经系统--肌张力
            SetCheckBoxOfList("BabinskiSign", BabinskiSign); //神经系统--巴氏征

            $('#ObstetricExamination').combobox('setValue', ObstetricExamination == "" ? "--请选择--" : ObstetricExamination);//产科检查选择

            //$('#GongGaoCartilagoEnsiformis').val(GongGaoCartilagoEnsiformis);//产科检查（宫高：剑突下）
            //$('#GongGaoNavel').val(GongGaoNavel);//产科检查（宫高：脐上）
            //$('#GongGaoSuprapubic').val(GongGaoSuprapubic);//产科检查（宫高：耻骨上）
            //$('#GongGaoBelowUmbilicus').val(GongGaoBelowUmbilicus);//产科检查（宫高：脐下）
            //$('#ObstetricExaminationSupplement').val(ObstetricExaminationSupplement);//产科检查补充描述

            //$('#tOtherNecessaryRecords').val(OtherNecessaryRecord == "" || OtherNecessaryRecord == null ? "" : OtherNecessaryRecord);//其他必要记录
            //$('#tOtherNecessaryRecord').textbox('setText', OtherNecessaryRecord == "" ? "" : OtherNecessaryRecord.trim().replace(/&#160;/g, "    "));//其他必要记录
            //#endregion

            //GCS评分
            $('#lblGCSPF').html(GCSScore);//GCS评分累计评分
            $('#OpenReaction').combobox('setValue', OpenReaction == 0 ? "0" : OpenReaction);//睁眼反应
            $('#LanguageReaction').combobox('setValue', LanguageReaction == 0 ? "0" : LanguageReaction);//语言反应
            $('#MotionResponse').combobox('setValue', MotionResponse == 0 ? "0" : MotionResponse);//运动反应

            //创伤指数(TI)评分
            $('#lblTIPF').html(TIScore);//累计评分
            SetCheckBoxOfList("Position", Position); //神经系统
            SetCheckBoxOfList("DamageWay", DamageWay); //损伤方式
            SetCheckBoxOfList("CirculationChange", CirculationChange); //循环改变
            SetCheckBoxOfList("BreathingChange", BreathingChange); //呼吸改变
            SetCheckBoxOfList("ConsciousnessChange", ConsciousnessChange); //意识改变

            //Apgar评分
            $('#lblApgarPF').html(ApgarScore);//累计评分
            SetRadioOfList("rblMeiFenZhongXinLv", HeartRatePerMinute); //每分钟心率
            SetRadioOfList("rblHuXi", Breathing); //呼吸
            SetRadioOfList("rblJiZhangLi", MuscleTension); //肌张力
            SetRadioOfList("rblHouFanShe", LaryngealReflex); //喉反射
            SetRadioOfList("rblPiFuYanSe", SkinColor); //皮肤颜色

            //必要器械检查
            $('#ECG').combobox('setValue', ECGSelect == "" ? "--请选择--" : ECGSelect);//心电图印象选择
            //$('#ECGImpression').val(ECGImpression);//心电图印象
            //$('#HidECGImpressionIDs').val(ECGImpressionCodes);//心电图印象编码串
            //$('#ECGImpressionSupplement').val(ECGImpressionSupplement);//心电图印象其他
            //$('#ECGImpressionRetestI').val(ECGImpressionRetestI);//心电图印象复查1
            //$('#HidECGImpressionRetestICodes').val(ECGImpressionRetestICodes);//心电图印象复查1编码串
            //$('#ECGImpressionRetestISupplement').val(ECGImpressionRetestISupplement);//心电图印象复查1其他
            //$('#ECGImpressionRetestII').val(ECGImpressionRetestII);//心电图印象复查2
            //$('#HidECGImpressionRetestIICodes').val(ECGImpressionRetestIICodes);//心电图印象复查2编码串
            //$('#ECGImpressionRetestIISupplement').val(ECGImpressionRetestIISupplement);//心电图印象复查2其他
            SetCheckBoxOfList("CheckBox_DaoLian", TwelveDaoLian); //12导联选择-20151124

            //2022-10-14 zch 绑定相关心电图时间值 //add2024-08-23 plq 移植
            $('#ECGImpressionFirstTime').datetimebox('setValue', ECGImpressionFirstTime); //
            $('#ECGImpressionLastTime').datetimebox('setValue', ECGImpressionLastTime); //
            //2024-03-04 zch //add2024-08-23 plq
            $('#NotSufficientRevivingReason').combobox('setValue', NotSufficientRevivingReason == "" ? "--请选择--" : NotSufficientRevivingReason);

            $('#BloodSugarSelect').combobox('setValue', BloodSugarSelect == "" ? "--请选择--" : BloodSugarSelect);//血糖选择
            //$('#BloodSugar').val(BloodSugar);//血糖
            //$('#BloodSugarRetestI').val(BloodSugarRetestI);//血糖复查1
            //$('#BloodSugarRetestII').val(BloodSugarRetestII);//血糖复查2
            $('#BloodOxygenSelect').combobox('setValue', BloodOxygenSelect == "" ? "--请选择--" : BloodOxygenSelect);//血氧饱和度选择
            //$('#BloodOxygen').val(BloodOxygen);//血氧饱和度
            //$('#BloodOxygenRetestI').val(BloodOxygenRetestI);//血氧饱和度复查1
            //$('#BloodOxygenRetestII').val(BloodOxygenRetestII);//血氧饱和度复查2

            //$('#SymptomPendingInvestigation').val(SymptomPendingInvestigation);//初步印象--症状待查
            //$('#HidSymptomPendingInvestigationIDs').val(SymptomPendingInvestigationCodes);//初步印象--症状待查编码串
            //$('#SymptomPendingInvestigationSupplement').val(SymptomPendingInvestigationSupplement);//初步印象--症状待查其他
            //$('#PrimaryDiagnoses').val(PrimaryDiagnoses);//初步印象
            //$('#HidPrimaryDiagnosesIDs').val(PrimaryDiagnosesCodes);//初步印象编码串
            //$('#PrimaryDiagnosesSupplement').val(PrimaryDiagnosesSupplement);//初步印象其他

            SetRadioOfList("IFRefuseTreatment", IFRefuseTreatment); //救治记录选择
            SetRadioOfList("RescueType", RescueType == "" ? "请选择" : RescueType); //救治记录--抢救类型

            //心肺复苏
            SetCheckBoxOfList("CPRSelect", CPRSelect == "" ? "" : CPRSelect); //心肺复苏选择
            SetRadioOfList("Witness", Witness); //目击者
            SetRadioOfList("CarToBeforeCPR", CarToBeforeCPR); //车到前CPR
            SetRadioOfList("CarToBeforeDefibrillation", CarToBeforeDefibrillation); //车到前除颤
            $('#CardiacArrestReason').combobox('setValue', CardiacArrestReason == "" ? "--请选择--" : CardiacArrestReason);//心脏骤停可能原因
            //$('#CardiacArrestReasonSupplement').val(CardiacArrestReasonSupplement);//心脏骤停补充说明
            //$('#AfterResuscitationECGDiagnosis').val(AfterResuscitationECGDiagnosis);//复苏后心电图诊断
            //$('#AfterResuscitationBP').val(AfterResuscitationBP);//复苏后BP
            //$('#AfterResuscitationSaO2').val(AfterResuscitationSaO2);//复苏后SaO2
            $('#PulsationAppearTime').datetimebox('setValue', PulsationAppearTime); // 颈A搏动出现时间
            $('#BreatheAppearTime').datetimebox('setValue', BreatheAppearTime); // 自主呼吸出现时间
            SetRadioOfList("IFAdmittedToHospital", IFAdmittedToHospital); //是否入院

            //SetRadioOfList("IFLeaveHospital", $('#hidIFLeaveHospital').val()); //是否出院
            SetRadio("IFLeaveHospital", $('#hidIFLeaveHospital').val()); //是否出院SetRadio
            $('#LeaveHospitalDate').datebox('setValue', LeaveHospitalDate); // 复苏后出院日期
            $('#LeaveHospitalCPC').combobox('setValue', LeaveHospitalCPC == "" ? "--请选择--" : LeaveHospitalCPC);//出院时CPC数值
            $('#VerifyResults').combobox('setValue', VerifyResults == "" ? "--请选择--" : VerifyResults);//急救科核实结果
            //$('#VerifyPerson').val(VerifyPerson);//核实人员
            $('#VerifyDate').datebox('setValue', VerifyTime); // 复苏后出院日期
            $('#AttackPlace').combobox('setValue', AttackPlace == "" ? "--请选择--" : AttackPlace);//发病地点-20150917
            $('#CPRArriveSceneTime').datetimebox('setValue', CPRArriveSceneTime); // 到达现场时间-20150917
            SetRadioOfList("ChestCompression", ChestCompression); //胸外按压20150917
            $('#StartChestCompressionTime').datetimebox('setValue', StartChestCompressionTime); // 开始胸外按压时间-20150917
            $('#BeforeResuscitationECGDiagnosis').combobox('setValue', BeforeResuscitationECGDiagnosis == "" ? "--请选择--" : BeforeResuscitationECGDiagnosis);//复苏前心电图诊断-20150917
            SetRadioOfList("Defibrillation", Defibrillation); //除颤20150917
            $('#FirstDefibrillationTime').datetimebox('setValue', FirstDefibrillationTime); // 首次除颤时间20150917
            $('#IntervalTime').val(IntervalTime);//间隔时间20150917
            $('#DoctorFollowUpReason').combobox('setValue', DoctorFollowUpReason == "" ? "--请选择--" : DoctorFollowUpReason);//回访原因-20150917
            SetRadioOfList("WitnessHeartbeatBreatheArrest", WitnessHeartbeatBreatheArrest); //目击下心跳呼吸骤停20160107

            $('#IllState').combobox('setValue', IllState == "" ? "--请选择--" : IllState);//病情分类
            $('#IllStateReport').combobox('setValue', IllStateReport == "" ? "--请选择--" : IllStateReport);//病情预报
            $('#DeathCase').combobox('setValue', DeathCase == "" ? "--请选择--" : DeathCase);//死亡病例--20160328修改为“呼吸心跳停止”
            $('#DeathCertificate').combobox('setValue', DeathCertificate == "" ? "--请选择--" : DeathCertificate);//死亡证明
            $('#FirstAidEffect').combobox('setValue', FirstAidEffect == "" ? "--请选择--" : FirstAidEffect);//急救效果
            $('#MajorEmergencies').combobox('setValue', MajorEmergencies == "" ? "--请选择--" : MajorEmergencies);//重大突发事件
            $('#DiseaseCooperation').combobox('setValue', DiseaseCooperation == "" ? "--请选择--" : DiseaseCooperation);//病家合作度
            //$('#DiseaseNotCooperationSupplement').val(DiseaseNotCooperationSupplement);//病家合作度--补充说明

            //$('#Remark').val(Remark);//备注
            //$('#DoctorFollowUp').val(DoctorFollowUp);//医生随访(回访)

            //心肺复苏审核
            SetRadioOfList("CenterAuditResult", CenterAuditResult); //中心审核结果
            //$('#tCenterNotThroughReason').textbox('setValue', CenterNotThroughReason.replace(/&#160;/g, " "));//中心审核不通过原因
            if (!isNullOrEmpty(CenterAuditPerson)) {
                $('#lblCenterAudit').html(CenterAuditPerson + "：" + CenterAuditTime);//中心审核人和时间
            }

            //
            $('#HidSubmitLogo').val(SubmitLogo);//提交标志

            //病历抽查
            SetRadioOfList("SubCenterSpotChecksResult", SubCenterSpotChecksResult); //分中心抽查结果
            $('#SubCenterSpotChecksUnqualifiedReason').combobox('setValue', SubCenterSpotChecksUnqualifiedReason == "" ? "--请选择--" : SubCenterSpotChecksUnqualifiedReason);//分中心抽查结果不合格原因
            //$('#tSubCenterSpotChecksRmark').textbox('setValue', SubCenterSpotChecksRmark.replace(/&#160;/g, "  "));//分中心抽查备注
            if (!isNullOrEmpty(SubCenterPerson)) {
                $('#lblSubCenterSpotChecks').html(SubCenterPerson + "：" + SubCenterSpotChecksTime);//分中心抽查人和时间
            }
            SetRadioOfList("CenterSpotChecksResult", CenterSpotChecksResult); //中心抽查结果
            $('#CenterSpotChecksUnqualifiedReason').combobox('setValue', CenterSpotChecksUnqualifiedReason == "" ? "--请选择--" : CenterSpotChecksUnqualifiedReason);//中心抽查结果不合格原因
            //$('#tCenterSpotChecksRmark').textbox('setValue', CenterSpotChecksRmark.replace(/&#160;/g, "  "));//中心抽查备注
            if (!isNullOrEmpty(CenterSpotChecksPerson)) {
                $('#lblCenterSpotChecks').html(CenterSpotChecksPerson + "：" + CenterSpotChecksTime);//中心抽查人和时间
            }
            SetRadioOfList("NoticeAttendNursingLectures", NoticeAttendNursingLectures == "" ? "" : NoticeAttendNursingLectures); //通知参加本月病历小讲课--20151124
            SetRadioOfList("ActualAttendNursingLectures", ActualAttendNursingLectures); //实际参加本月病历小讲课--20151124

            SetRadioOfList("FillNoticeAttendNursingLectures", FillNoticeAttendNursingLectures == "" ? "" : FillNoticeAttendNursingLectures); //补通知参加本月病历小讲课--20151124
            SetRadioOfList("FillActualAttendNursingLectures", FillActualAttendNursingLectures); //补实际参加本月病历小讲课--20151124
            SetCheckBoxOfList("CheckBox_MedicalHistoryWritingProgress", MedicalHistoryWritingProgress); //病史书写进步--20151124

            SetRadioOfList("Fill2NoticeAttendNursingLectures", Fill2NoticeAttendNursingLectures == "" ? "" : Fill2NoticeAttendNursingLectures); //补2通知参加本月病历小讲课--20151209
            SetRadioOfList("Fill2ActualAttendNursingLectures", Fill2ActualAttendNursingLectures); //补2实际参加本月病历小讲课--20151209

            SetRadioOfList("IFFormedConsent", FormedConsent == "" ? "" : FormedConsent); //告知签字--20151214

            SetRadioOfList("IFMedicalGuide", MedicalGuide == "" ? "" : MedicalGuide);//远程医学指导 20180408 //add2023-02-10 plq

            //$('#DrivingTimeSupplement').val(DrivingTimeSupplement); //出车时间补充说明-20160115
            //$('#ArriveSceneTimeSupplement').val(ArriveSceneTimeSupplement);//到达现场补充说明-20160115
            //$('#LeaveSceneTimeSupplement').val(LeaveSceneTimeSupplement);//出车时间补充说明-20160115
            //$('#ArriveDestinationTimeSupplement').val(ArriveDestinationTimeSupplement);//到达时间补充说明-20160115
            $('#CenterFollowUp').combobox('setValue', CenterFollowUp == "" ? "--请选择--" : CenterFollowUp);//中心回访-20160115

            $('#DrivingTimeSupplement').combobox('setValue', $('#hidDrivingTimeSupplement').val() == "" ? "--请选择--" : $('#hidDrivingTimeSupplement').val());//出车时间补充说明-20160301
            $('#ArriveSceneTimeSupplement').combobox('setValue', $('#hidArriveSceneTimeSupplement').val() == "" ? "--请选择--" : $('#hidArriveSceneTimeSupplement').val());//到达现场补充说明-20160301
            $('#LeaveSceneTimeSupplement').combobox('setValue', $('#hidLeaveSceneTimeSupplement').val() == "" ? "--请选择--" : $('#hidLeaveSceneTimeSupplement').val());//出车时间补充说明-20160301
            $('#ArriveDestinationTimeSupplement').combobox('setValue', $('#hidArriveDestinationTimeSupplement').val() == "" ? "--请选择--" : $('#hidArriveDestinationTimeSupplement').val());//到达时间补充说明-20160301

            //如果病历已经提交；
            if ((SubmitLogo == "True" && MedicalStateCode != 2 && '@ViewData["SuperRole"]' == "") || state == "look") {
                //alert(1);
                //$('#btnSave').linkbutton("disable");//禁用
                $('#btnSave').css("display", "none");//隐藏保存按钮
                //$('#btnSubmit').linkbutton("disable");
                $('#btnSubmit').css("display", "none");//隐藏提交按钮
                $('#btnClearAlarmReason').css("display", "none");//隐藏--清空主诉/现病史按钮20160826

                if ('@ViewData["PatientRole"]' == "Driver") {
                    $('#btnFollowUp').css("display", "none");//隐藏保存回访按钮
                }
                else
                    $('#btnFollowUp').css("display", "");//显示保存回访按钮（提交后显示）
            }
            else {
                //alert(2);
                //20161129--如果病历已经提交，病历状态为不通过或者有权限人员
                if (SubmitLogo == "True" && (MedicalStateCode == 2 || '@ViewData["SuperRole"]' != "")) {
                    $('#btnSave').css("display", "none");//隐藏保存按钮
                    $('#btnClearAlarmReason').css("display", "");//显示--清空主诉/现病史按钮20160826
                }
                else {
                    $('#btnSave').css("display", "");//显示保存按钮
                }
                $('#btnSubmit').css("display", "");//显示提交按钮

                $('#btnFollowUp').css("display", "none");//隐藏保存回访按钮
            }

            //#endregion
        }
        //#endregion

    }
    //#endregion

    //#region 保存病历心肺复苏审核信息
    function SaveAuditCPR() {
        var isValid = $("#divshenhe").form("validate");
        if (isValid) {
            GetAuditCPRValid();//判断必填项

            if (AuditCPRAlert == "") {
                $.messager.confirm('保存病历心肺复苏审核', '是否确定要保存病历心肺复苏审核？', function (r) {
                    if (r) {
                        var AuditCPR = JSON.stringify(GetPRAuditCPR());//将JSON转为字符串

                        $.ajax({
                            url: '@Url.Content("~/Medical/SaveAuditCPR/")',
                            type: "POST",
                            data: {
                                AuditCPR: AuditCPR
                            },
                            success: function (msg) {
                                if (msg == 'True') {
                                    //$.messager.alert('系统提示', '保存成功', 'info');
                                    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>心肺复苏审核成功！</b></span>', 'info');

                                    parent.window.opener.bindGrid(); //调用父页面查询方法--刷新
                                    window.close();//关闭窗口
                                } else {
                                    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储心肺复苏审核错误，请联系技术人员！</b></span>', 'error');

                                }
                            },
                            error: function () {
                                msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储心肺复苏审核错误，请联系技术人员！</b></span>', 'error');

                            }
                        });
                    }
                });
            }
            else {
                $.showMsg("" + AuditCPRAlert + "", "提示");
                AuditCPRAlert = "";
            }
        }
        else {
            $.showMsg("输入内容长度不满足！请修改粉红色框的内容！", "提示");
        }
    }
    //#endregion

    //#region 保存病历抽查信息
    function SaveSpotChecks(orderNumber) {

        var isValid = $("#divchoucha").form("validate");
        if (isValid) {
            GetSpotChecksValid(orderNumber);//判断必填项

            if (SpotChecksAlert == "-1") {
                $.messager.confirm('取消病历抽查', '是否确定要：' + '<span style="color:red;">取消病历抽查</span>' + '？', function (r) {
                    if (r) {
                        var SpotChecks;
                        if (orderNumber == -1) {
                            SpotChecks = JSON.stringify(GetSubCenterPRSpotChecks(-1));//将JSON转为字符串
                        }
                        else
                            SpotChecks = JSON.stringify(GetCenterPRSpotChecks(-1));//将JSON转为字符串

                        $.ajax({
                            url: '@Url.Content("~/Medical/SaveSpotChecks/")',
                            type: "POST",
                            data: {
                                SpotChecks: SpotChecks,
                                orderNumber: orderNumber
                            },
                            success: function (msg) {
                                if (msg == 'True') {
                                    //$.messager.alert('系统提示', '保存成功', 'info');
                                    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>病历抽查成功！</b></span>', 'info');

                                    parent.window.opener.bindGrid(); //调用父页面查询方法--刷新
                                    window.close();//关闭窗口
                                } else {
                                    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储抽查错误，请联系技术人员！</b></span>', 'error');

                                }
                            },
                            error: function () {
                                msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储抽查错误，请联系技术人员！</b></span>', 'error');

                            }
                        });
                    }
                });
            }
            else if (SpotChecksAlert == "") {
                $.messager.confirm('保存病历抽查', '是否确定要保存病历抽查？', function (r) {
                    if (r) {
                        var SpotChecks;
                        if (orderNumber == -1) {
                            SpotChecks = JSON.stringify(GetSubCenterPRSpotChecks());//将JSON转为字符串
                        }
                        else
                            SpotChecks = JSON.stringify(GetCenterPRSpotChecks());//将JSON转为字符串

                        $.ajax({
                            url: '@Url.Content("~/Medical/SaveSpotChecks/")',
                            type: "POST",
                            data: {
                                SpotChecks: SpotChecks,
                                orderNumber: orderNumber
                            },
                            success: function (msg) {
                                if (msg == 'True') {
                                    //$.messager.alert('系统提示', '保存成功', 'info');
                                    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>病历抽查成功！</b></span>', 'info');

                                    parent.window.opener.bindGrid(); //调用父页面查询方法--刷新
                                    window.close();//关闭窗口
                                } else {
                                    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储抽查错误，请联系技术人员！</b></span>', 'error');

                                }
                            },
                            error: function () {
                                msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储抽查错误，请联系技术人员！</b></span>', 'error');

                            }
                        });
                    }
                });
            }
            else {
                $.showMsg("" + SpotChecksAlert + "", "提示");
                SpotChecksAlert = "";
            }
            SpotChecksAlert = "";
        }
        else {
            $.showMsg("输入内容长度不满足！请修改粉红色框的内容！", "提示");
        }
    }
    //#endregion

    //#region 清空中心抽查信息--20160113
    function SpotChecksCancel(value) {
        if (value == "-1") {
            unCheckBoxAll("SubCenterSpotChecksResult", ""); //清空--抽查结果--20160113
            $('#SubCenterSpotChecksUnqualifiedReason').combobox('setValue', "--请选择--");//分中心抽查结果不合格原因
            $('#tSubCenterSpotChecksRmark').textbox('setValue', " ");//分中心抽查备注
        }
        else if (value == "-2") {
            unCheckBoxAll("CenterSpotChecksResult", ""); //清空--抽查结果--20160113
            $('#CenterSpotChecksUnqualifiedReason').combobox('setValue', "--请选择--");//中心抽查结果不合格原因
            unCheckBoxAll("CheckBox_MedicalHistoryWritingProgress", ""); //清空--病史合格--20160113
            $('#tCenterSpotChecksRmark').textbox('setValue', " ");//中心抽查备注
            unCheckBoxAll("NoticeAttendNursingLectures", ""); //清空--通知参加本月病历小讲课--20160113
            unCheckBoxAll("ActualAttendNursingLectures", ""); //清空--实际参加病历小讲课--20160113
            unCheckBoxAll("FillNoticeAttendNursingLectures", ""); //清空--补通知参加本月病历小讲课--20160113
            unCheckBoxAll("FillActualAttendNursingLectures", ""); //清空--补实际参加病历小讲课--20160113
            unCheckBoxAll("Fill2NoticeAttendNursingLectures", ""); //清空--补2通知参加本月病历小讲课--20160113
            unCheckBoxAll("Fill2ActualAttendNursingLectures", ""); //清空--补2实际参加病历小讲课--20160113
        }
    }
    //#endregion

    //#region 保存病历--医生回访（病历提交后可以单独修改回访）
    function SaveFollowUp(value) {
        var FollowUpState = 1;
        var FollowUpReason = "";//回访
        var FollowUpSupplement = "";//回访补充
        var FollowUp = "个人";
        if (value == "-2") {
            FollowUp = "中心";
        }
        $.messager.confirm('保存' + FollowUp + '回访', '是否确定要保存' + FollowUp + '回访？', function (r) {
            if (r) {
                var CenterFollowUp = isNullOrEmptyString($('#CenterFollowUp').combobox('getValue'));// 中心回访-20160115
                var CenterFollowUpSupplement = $('#CenterFollowUpSupplement').val();// 中心回访补充说明
                if (value == "-2") {
                    FollowUpState = 2;
                    FollowUpReason = CenterFollowUp;
                    FollowUpSupplement = CenterFollowUpSupplement;
                }
                else {
                    FollowUpReason = isNullOrEmptyString($('#DoctorFollowUpReason').combobox('getValue'));// 个人回访-20160118
                    FollowUpSupplement = $('#DoctorFollowUp').val();
                }
                $.ajax({
                    url: '@Url.Content("~/Medical/SaveFollowUp/")',
                    type: "POST",
                    data: {
                        TaskCode: TaskCode,
                        PatientOrder: PatientOrder,
                        FollowUpState: FollowUpState,
                        FollowUpReason: FollowUpReason,
                        FollowUpSupplement: FollowUpSupplement
                    },
                    success: function (msg) {
                        if (msg == 'True') {
                            //$.messager.alert('系统提示', '保存成功', 'info');
                            msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>保存回访成功！</b></span>', 'info');

                            parent.window.opener.bindGrid(); //调用父页面查询方法--刷新
                            window.close();//关闭窗口
                        } else {
                            msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储回访错误，请联系技术人员！</b></span>', 'error');

                        }
                    },
                    error: function () {
                        msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储回访错误，请联系技术人员！</b></span>', 'error');

                    }
                });
            }
        });
    }
    //#endregion

    //#region 提交病历信息//add2022-02-23 plq 提交前增加是否已有收费信息填报提示
    function SubmitPatientRecord(IsSubmit) {
        $.messager.confirm('提交患者信息', '是否确定要提交病历？点击确定后病历不能修改！', function (r) {
            if (r) {
                if ('@ViewBag.IsCharge' == "未收") {
                    $.messager.confirm('提交患者信息', '该病历尚未提交收费信息，是否确认提交？点击确定后病历不能修改！', function (r) {
                        if (r) {
                            SavePatientRecord(IsSubmit);
                        }
                    });
                }
                else {
                    SavePatientRecord(IsSubmit);
                }
            }
        });
    }
    //#endregion

    //#region 保存病历信息
    function SavePatientRecord(IsSubmit) {

        var isValid = $("#TablePatientForm").form("validate");
        if (isValid) {
            var IsFill = 0;//20160317病历是否填写，默认为否
            var PatientRecord = new Object();
            PatientRecord.TaskCode = TaskCode;
            PatientRecord.PatientOrder = PatientOrder;
            PatientRecord.state = state;//病历状态
            PatientRecord.info = GetPatientRecordModel(IsSubmit);//病历主表信息
            PatientRecord.pra = GetPatientRecordAppendModel();//病历附表
            //if (CPRSelect == "ROSC") {
            PatientRecord.prCPR = GetPatientRecordCPRModel();//病历附表--心肺复苏信息
            //}
            //else
            //    PatientRecord.prCPR = null;//病历附表--心肺复苏信息
            PatientRecord.prDiag = GetPatientRecordDiag();//病历子表--初步印象
            PatientRecord.prECG = GetPatientRecordECGImpressions();//病历子表--心电图印象

            //20161121--允许填写多个病历
            //20160317增加判断，如果是新增，从数据库查询判断是否已经填写病历，如果已经填写病历提示，并且刷新查询！
            @*if (state == "new") {
                $.ajax({
                    type: 'POST',
                    url: '@Url.Content("~/PR/Medical/IFFillPatientRecord")',
                    data:
                        {
                            TaskCode: TaskCode
                        },
                    dataType: "json",
                    success: function (msg) {
                        if (msg == "1") {
                            //未填写病历
                        }
                        else {
                            //已经填写病历
                            IsFill = 1;
                            alert("病历已经在其他地方填写！点击确定按钮后页面将自动关闭！");

                            $.showMsg("病历已经填写！页面将自动关闭！", "提示");
                            parent.window.opener.bindGrid(); //调用父页面查询方法--刷新
                            window.close();//关闭窗口
                        }
                    }
                })
            }*@

            //不会存在新增病历的时候里面已经增加过病历了
            if (IsFill == 0) {
                GetPatientRecordValid();//判断病历必填项是否都填写
                if (IsSubmit == 0) {
                    Alert = "";
                }
                if (Alert == "") {
                    var str = JSON.stringify(PatientRecord);//将JSON转为字符串

                    $('#btnSave').css("display", "none");//隐藏保存按钮
                    $('#btnSubmit').css("display", "none");//隐藏提交按钮
                    $.ajax({
                        url: '@Url.Content("~/Medical/SavePatient/")',
                        type: "POST",
                        data: {
                            PatientRecord: str
                        },
                        success: function (msg) {
                            if (msg == 'True') {
                                //$.messager.alert('系统提示', '保存成功', 'info');
                                msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;<b>保存成功！</b></span>', 'info');

                                parent.window.opener.bindGrid(); //调用父页面查询方法--刷新
                                window.close();//关闭窗口
                                //window.opener.Reload(type);
                            } else {
                                msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>存储病历失败，请联系技术人员！</b></span>', 'error');
                            }
                        },
                        error: function () {
                            msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>存储病历失败，请联系技术人员！</b></span>', 'error');
                        }
                    });
                }
                else {
                    $.showMsg("" + Alert + "", "提示");
                    Alert = "";
                }
            }
        }
        else {
            $.showMsg("输入内容长度超过最大限制或【患者姓名】要满足最少2个字！请修改粉红色框的内容！", "提示");
        }
    }


    //#region 为病历主表对象赋值
    function GetPatientRecordModel(IsSubmit) {
        GetControlValueToVariable();

        var now = new Date();

        var obj = new Object();
        obj.TaskCode = TaskCode;
        obj.PatientOrder = PatientOrder;
        obj.CallOrder = CallOrder;
        obj.Name = Name.trim();//20161227--去空格
        obj.Sex = Sex;
        obj.Age = Age;
        obj.AgeType = AgeType;
        obj.ContactTelephone = ContactTelephone;
        obj.PatientVersion = AlarmType == "转院" ? "一般转院" : AlarmType;//20160317
        obj.OriginalTaskType = $('#lblAlarmType').html();//调度传过来的事件类型
        obj.EmptyReason = EmptyReason;
        obj.EmptyReasonSupplement = EmptyReasonSupplement;
        obj.IsSeePeople = IsSeePeople;
        obj.ForArea = $('#lblArea').html();
        obj.LocalAddress = LocalAddress;
        obj.OutStationCode = StationCode;
        obj.Station = Station;
        obj.SendAddress = SendAddress;
        obj.DrivingTime = DrivingTime;
        obj.ArriveSceneTime = ArriveSceneTime;
        obj.LeaveSceneTime = LeaveSceneTime;
        obj.ArriveDestinationTime = ArriveDestinationTime;
        obj.Driver = Driver;
        obj.StretcherBearersI = StretcherBearers;
        obj.DoctorAndNurse = DoctorAndNurse;
        obj.TeachingPractice = TeachingPractice;
        obj.ProvideMedicalHistoryPeople = ProvideMedicalHistoryPeople;
        obj.DiseasesClassification = DiseasesClassification;
        obj.DiseasesClassificationSupplement = DiseasesClassificationSupplement;
        obj.AlarmReason = (AlarmReason == "" || AlarmReason == null) ? "" : AlarmReason.trim();
        obj.HistoryOfPresentIllness = (HistoryOfPresentIllness == "" || HistoryOfPresentIllness == null) ? "" : HistoryOfPresentIllness.trim();
        obj.PastMedicalHistory = PastMedicalHistory;
        obj.PastMedicalHistorySupplement = PastMedicalHistorySupplement;
        obj.IllnessClassification = IllState;
        obj.IllnessForecast = IllStateReport;
        obj.DeathCase = DeathCase;
        obj.DeathCertificate = DeathCertificate;
        obj.FirstAidEffect = FirstAidEffect;
        obj.MajorEmergencies = MajorEmergencies;
        obj.DiseaseCooperation = DiseaseCooperation;
        obj.DiseaseNotCooperationSupplement = DiseaseNotCooperationSupplement;
        if (state == "new") {
            obj.AgentCode = '@ViewData["AgentCode"]';//填写病历的人员编码
            obj.AgentWorkID = '@ViewData["AgentWorkID"]';//填写病历的人员工号
            obj.AgentName = '@ViewData["AgentName"]';//填写病历的人员
            obj.BeginFillPatientTime = BeginFillPatientTime;//开始填写病历时间
            //obj.MedicalRecordGenerationTime = now;//病历生成时间--20151125注释，改在DAL里赋值
            obj.FormCompleteLogo = false;
            //obj.FormCompleteTime = null;
            obj.ChargeOrder = 0;
            obj.SubCenterIFSpotChecks = false;
            obj.CenterIFSpotChecks = false;
        }
        if (IsSubmit == 1) {
            obj.SubmitLogo = true;
            obj.SubmitTime = now;
            obj.FormCompleteLogo = true;
            obj.FormCompleteTime = now;
        }
        else {
            obj.SubmitLogo = false;
            obj.SubmitTime = null;
            obj.FormCompleteLogo = false;
            obj.FormCompleteTime = null;
        }
        //20161129--增加病历状态为不通过，并且为提交
        var MedicalStateCode = $('#HidMedicalStateCode').val();//20161129--增加病历状态隐藏
        //alert(MedicalStateCode);
        if (MedicalStateCode == 2 && IsSubmit == 1) {

            obj.MedicalStateCode = 3;//病历状态修改为：修改后提交
        }
        else {
            obj.MedicalStateCode = IsSubmit;
        }
        obj.LastUpdatePerson = '@ViewData["AgentName"]';//填写病历的人员
        obj.LastUpdateTime = now;
        obj.CPRIFSuccess = CPRSelect;//心肺复苏选择
        obj.IFRefuseTreatment = IFRefuseTreatment;//是否拒绝治疗（救治记录）
        obj.RescueType = RescueType;//抢救类型(救治记录)
        obj.IMEI = "PC";//电脑填写
        obj.Remark = Remark;//备注
        obj.SaveOneselfMeasures = SaveOneselfMeasures;//自救措施-20150917
        obj.SaveOneselfMeasuresSupplement = SaveOneselfMeasuresSupplement;//自救措施补充说明-20150917
        obj.FormedConsent = FormedConsent;//告知签字-20151214
        obj.DrivingTimeSupplement = DrivingTimeSupplement;//出车时间补充说明-20160115
        obj.ArriveSceneTimeSupplement = ArriveSceneTimeSupplement;
        obj.LeaveSceneTimeSupplement = LeaveSceneTimeSupplement;
        obj.ArriveDestinationTimeSupplement = ArriveDestinationTimeSupplement;
        obj.MeasureInformation = MeasureInformation; //诊疗操作 add2022-08-17 plq --闵行移植

        obj.MedicalGuide = MedicalGuide;//远程医学指导-20180408 add2023-02-10 plq --青浦移植
        return obj;

    }
    //#endregion

    //#region 为病历附表对象赋值--体检
    function GetPatientRecordAppendModel() {
        GetControlValueToVariable();

        var now = new Date();

        var obj = new Object();
        obj.TaskCode = TaskCode;
        obj.PatientOrder = PatientOrder;
        obj.DischargeDiagnosis = DischargeDiagnosis;//转出院诊断
        obj.HospitalMeasuresTreatment = HospitalMeasuresTreatment;//院内主要治疗措施
        obj.AtPresentPatientSymptom = AtPresentPatientSymptom;//目前患者症状
        obj.PhysicalExaminationChoose = tiJianChoose;//体检选择
        obj.TChoose = TChoose;
        obj.T = tT;
        obj.PChoose = PChoose;
        obj.P = tP;
        obj.RChoose = RChoose;
        obj.R = tR;
        obj.BPChoose = BP;
        obj.BP1 = tBP1;
        obj.BP2 = tBP2;
        obj.BP3 = kPa1;
        obj.BP4 = kPa2;
        obj.Consciousness = Consciousness;//意识
        obj.Pupilla = Pupilla;//瞳孔
        obj.PupillaSupplement = PupillaSupplement;//瞳孔补充
        obj.LightReflex = LightReflex;
        obj.LightReflexSupplement = LightReflexSupplement;//对光反射补充描述--20151124
        obj.Skin = Skin;//皮肤
        obj.SkinSupplement = SkinSupplement;//皮肤补充
        obj.Head = Head;
        obj.HeadSupplement = HeadSupplement;
        obj.Neck = Neck;
        obj.NeckSupplement = NeckSupplement;
        obj.Chest = Chest;
        obj.ChestExtrusionTest = ChestExtrusionTest;//胸廓挤压试验
        obj.ChestSupplement = ChestSupplement;
        obj.Lungs = Lungs;
        obj.TwoLungBreathingSound = TwoLungBreathingSound;
        obj.LeftLung = LeftLung;
        obj.RightLung = RightLung;
        obj.LungsSupplement = LungsSupplement;
        obj.Heart = Heart;
        obj.HeartRate = HeartRate;
        obj.HeartRhythm = HeartRhythm;
        obj.HeartMurmur = HeartMurmur;
        obj.HeartSupplement = HeartSupplement;
        obj.Abdomen = Abdomen;
        obj.AbdomenSupplement = AbdomenSupplement;
        obj.Spine = Spine;
        obj.SpineSupplement = SpineSupplement;
        obj.Limbs = Limbs;
        obj.PelvicExtrusionTest = PelvicExtrusionTest;
        obj.LimbsSupplement = LimbsSupplement;

        obj.NervousSystem = NervousSystem;//神经系统
        obj.NervousSystemSupplement = NervousSystemSupplement;//神经系统补充
        obj.NervousSystemFace = NervousSystemFace;//
        obj.NervousSystemSpeech = NervousSystemSpeech;//
        obj.LeftUpperExtremity = LeftUpperExtremity;//
        obj.LeftLowerExtremity = LeftLowerExtremity;//
        obj.RightUpperLimb = RightUpperLimb;//
        obj.RightLowerLimb = RightLowerLimb;//
        obj.MuscularTension = MuscularTension;//神经系统--肌张力
        obj.BabinskiSign = BabinskiSign;//神经系统--巴氏征
        obj.ObstetricExamination = ObstetricExamination;//产科检查选择
        obj.GongGaoCartilagoEnsiformis = GongGaoCartilagoEnsiformis;//
        obj.GongGaoNavel = GongGaoNavel;//
        obj.GongGaoSuprapubic = GongGaoSuprapubic;//
        obj.GongGaoBelowUmbilicus = GongGaoBelowUmbilicus;//产科检查（宫高：脐下）
        obj.ObstetricExaminationSupplement = ObstetricExaminationSupplement;//产科检查补充描述
        obj.PhysicalExaminationSupplement = PhysicalExaminationSupplement;//体检补充描述，20150917放开
        obj.OtherNecessaryRecord = OtherNecessaryRecord == "" ? "" : OtherNecessaryRecord.trim();//其他必要记录

        //GCS评分累计评分
        obj.OpenReaction = OpenReaction;
        obj.OpenReactionScore = OpenReactionScore;
        obj.LanguageReaction = LanguageReaction;
        obj.LanguageReactionScore = LanguageReactionScore;
        obj.MotionResponse = MotionResponse;
        obj.MotionResponseScore = MotionResponseScore;
        obj.GCSScore = GCSScore;//合计评分

        //创伤指数(TI)评分累计评分
        obj.Position = Position;//部位
        obj.PositionScore = PositionScore;
        obj.DamageWay = DamageWay;//损伤方式
        obj.DamageWayScore = DamageWayScore;
        obj.CirculationChange = CirculationChange;//循环改变
        obj.CirculationChangeScore = CirculationChangeScore;
        obj.BreathingChange = BreathingChange;//呼吸改变
        obj.BreathingChangeScore = BreathingChangeScore;
        obj.ConsciousnessChange = ConsciousnessChange;//意识改变
        obj.ConsciousnessChangeScore = ConsciousnessChangeScore;
        obj.TIScore = TIScore;//合计评分

        //Apgar评分累计评分
        obj.HeartRatePerMinute = HeartRatePerMinute;//每分钟心率
        obj.HeartRatePerMinuteScore = HeartRatePerMinuteScore;
        obj.Breathing = Breathing;//呼吸
        obj.BreathingScore = BreathingScore;
        obj.MuscleTension = MuscleTension;//肌张力
        obj.MuscleTensionScore = MuscleTensionScore;
        obj.LaryngealReflex = LaryngealReflex;//喉反射
        obj.LaryngealReflexScore = LaryngealReflexScore;
        obj.SkinColor = SkinColor;//皮肤颜色
        obj.SkinColorScore = SkinColorScore;
        obj.ApgarScore = ApgarScore;

        obj.SymptomPendingInvestigation = SymptomPendingInvestigation;//初步印象--症状待查
        obj.SymptomPendingInvestigationCodes = SymptomPendingInvestigationCodes;//初步印象--症状待查编码串
        obj.SymptomPendingInvestigationSupplement = SymptomPendingInvestigationSupplement;//初步印象--症状待查其他
        obj.FirstImpression = PrimaryDiagnoses;//初步印象
        obj.FirstImpressionCodes = PrimaryDiagnosesCodes;//初步印象编码串
        obj.FirstImpressionSupplement = PrimaryDiagnosesSupplement;//初步印象其他
        obj.FirstImpressionDoubt = FirstImpressionDoubt;//20150917-初步印象疑问

        //心电图印象
        obj.ECGImpressionSelect = ECGSelect;
        obj.ECGImpression = ECGImpression;
        obj.ECGImpressionCodes = ECGImpressionCodes;
        obj.ECGImpressionSupplement = ECGImpressionSupplement;
        obj.ECGImpressionRetestI = ECGImpressionRetestI;
        obj.ECGImpressionRetestICodes = ECGImpressionRetestICodes;
        obj.ECGImpressionRetestISupplement = ECGImpressionRetestISupplement;
        obj.ECGImpressionRetestII = ECGImpressionRetestII;
        obj.ECGImpressionRetestIICodes = ECGImpressionRetestIICodes;
        obj.ECGImpressionRetestIISupplement = ECGImpressionRetestIISupplement;

        obj.ECGImpressionDoubt = ECGImpressionDoubt;//20150917-心电图印象疑问
        obj.ECGImpressionRetestIDoubt = ECGImpressionRetestIDoubt;//20150917-心电图印象复查1疑问
        obj.ECGImpressionRetestIIDoubt = ECGImpressionRetestIIDoubt;//20150917-心电图印象复查2疑问
        obj.IF12DaoLian = TwelveDaoLian;//20151125--12导联

        obj.ECGImpressionFirstTime = ECGImpressionFirstTime; //2022-10-11 zch 首次心电图时间 //add2024-08-23 plq移植
        obj.ECGImpressionLastTime = ECGImpressionLastTime; //2022-10-11 zch 末次心电图时间 //add2024-08-23 plq移植
        //2024-03-04 zch //add2024-08-23 plq移植
        obj.NotSufficientRevivingReason = NotSufficientRevivingReason;
        obj.NotSufficientRevivingReasonSupplement = NotSufficientRevivingReasonSupplement;

        //血糖
        obj.BloodSugarSelect = BloodSugarSelect;
        obj.BloodSugar = BloodSugar;
        obj.BloodSugarRetestI = BloodSugarRetestI;
        obj.BloodSugarRetestII = BloodSugarRetestII;

        //血氧饱和度
        obj.BloodOxygenSaturationSelect = BloodOxygenSelect;
        obj.BloodOxygenSaturation = BloodOxygen;
        obj.BloodOxygenSaturationRetestI = BloodOxygenRetestI;
        obj.BloodOxygenSaturationRetestII = BloodOxygenRetestII;

        return obj;
    }
    //#endregion

    //#region 为病历附表“心肺复苏”对象赋值
    function GetPatientRecordCPRModel() {
        GetControlValueToVariable();

        var now = new Date();

        var obj = new Object();
        obj.TaskCode = TaskCode;
        obj.PatientOrder = PatientOrder;
        obj.Witness = Witness;
        obj.CarToBeforeCPR = CarToBeforeCPR;
        obj.CarToBeforeDefibrillation = CarToBeforeDefibrillation;
        //obj.EmergencyTime = "";//急救时长(页面没有显示，最后删除)
        //obj.ECGMonitoringTime = "";//心电监护时间(页面没有显示，最后删除)
        obj.CardiacArrestReason = CardiacArrestReason;
        obj.CardiacArrestReasonSupplement = CardiacArrestReasonSupplement;//心脏骤停补充说明
        obj.BeforeResuscitationECGDiagnosis = BeforeResuscitationECGDiagnosis;//复苏前心电图诊断--20150917放开
        obj.BeforeResuscitationSaO2 = BeforeResuscitationSaO2;//复苏前SaO2--暂时禁用
        obj.AfterResuscitationBP = AfterResuscitationBP;
        obj.AfterResuscitationSaO2 = AfterResuscitationSaO2;
        obj.PulsationAppearTime = PulsationAppearTime;
        obj.BreatheAppearTime = BreatheAppearTime;
        obj.AfterResuscitationECGDiagnosis = AfterResuscitationECGDiagnosis;
        obj.IFAdmittedToHospital = IFAdmittedToHospital;
        //obj.IFLeaveHospital = IFLeaveHospital;//中心审核人员填写
        //obj.LeaveHospitalDate = LeaveHospitalDate;
        //obj.LeaveHospitalCPC = LeaveHospitalCPC;//测试的时候放开
        //obj.VerifyResults = VerifyResults;
        //obj.VerifyPerson = VerifyPerson;
        //obj.VerifyTime = VerifyTime;
        //if (state == "new")
        @*obj.RegistrationPerson = '@ViewData["AgentName"]';//填写人姓名*@
        //obj.RegistrationTime = now;//填写时间--获取现在时间
        obj.DoctorFollowUp = DoctorFollowUp;
        obj.CenterIFAuditForXFFS = false;
        obj.AttackPlace = AttackPlace;//20150917-发病地点
        obj.ArriveSceneTime = CPRArriveSceneTime;//到达现场时间20150917
        obj.ChestCompression = ChestCompression;//胸外按压20150917
        obj.StartChestCompressionTime = StartChestCompressionTime;//开始胸外按压时间20150917
        obj.Defibrillation = Defibrillation;//除颤20150917
        obj.FirstDefibrillationTime = FirstDefibrillationTime;//首次除颤时间20150917
        obj.IntervalTime = IntervalTime;//间隔时间20150917
        obj.DoctorFollowUpReason = DoctorFollowUpReason;//回访原因20150917
        obj.WitnessHeartbeatBreatheArrest = WitnessHeartbeatBreatheArrest;//目击下心跳呼吸骤停20160107
        return obj;
    }
    //#endregion

    //#region 为初步印象子表赋值
    function GetPatientRecordDiag() {
        var getArray = new Array();
        var postArray = new Array();

        if ($('#HidPrimaryDiagnosesIDs').val() != "") {
            var PrimaryDiagnoses = $('#HidPrimaryDiagnosesIDs').val().substring(0, $('#HidPrimaryDiagnosesIDs').val().length - 1);
            getArray = PrimaryDiagnoses.split(',');//初步印象编码串
            for (var i = 0; i < getArray.length ; i++) {
                var obj = new Object();
                obj.TaskCode = TaskCode;
                obj.PatientOrder = PatientOrder;
                obj.PrimaryDiagnosisCode = getArray[i];
                obj.SelectOrder = i + 1;
                postArray.push(obj);
            }
        }

        //var JsonData = JSON.stringify(postArray);
        return postArray;
    }
    //#endregion

    //#region 为心电图印象子表赋值
    function GetPatientRecordECGImpressions() {
        var getArray = new Array();
        var postArray = new Array();

        if ($('#HidECGImpressionIDs').val() != "") {
            var ECGImpression = $('#HidECGImpressionIDs').val().substring(0, $('#HidECGImpressionIDs').val().length - 1);
            getArray = ECGImpression.split(',');//心电图印象编码串
            for (var i = 0; i < getArray.length ; i++) {
                var obj = new Object();
                obj.TaskCode = TaskCode;
                obj.PatientOrder = PatientOrder;
                obj.ECGImpressionsCode = getArray[i];
                obj.SelectOrder = i + 1;
                postArray.push(obj);
            }
        }

        //var JsonData = JSON.stringify(postArray);
        return postArray;
    }
    //#endregion

    //#region 审核病历心肺复苏对象赋值
    function GetPRAuditCPR() {

        var now = new Date();
        var obj = new Object();
        obj.TaskCode = TaskCode;
        obj.PatientOrder = PatientOrder;
        obj.IFLeaveHospital = SplitArray(GetCheckBox("IFLeaveHospital"));// 是否出院
        obj.LeaveHospitalDate = isNullOrEmptyString($('#LeaveHospitalDate').datebox('getValue'));// 复苏后出院日期
        obj.LeaveHospitalCPC = isNullOrEmptyString($('#LeaveHospitalCPC').combobox('getValue'));// 出院时CPC数值
        obj.VerifyResults = isNullOrEmptyString($('#VerifyResults').combobox('getValue'));// 急救科核实结果
        obj.VerifyPerson = $('#VerifyPerson').val();// 核实人员
        obj.VerifyTime = isNullOrEmptyString($('#VerifyDate').datebox('getValue'));// 核实时间
        obj.RegistrationPerson = '@ViewData["AgentName"]';//填写人姓名;//登记人
        obj.RegistrationTime = now;//填写时间--获取现在时间
        obj.CenterIFAuditForXFFS = true;
        obj.CenterAuditPerson = '@ViewData["AgentName"]';//填写人姓名
        obj.CenterAuditTime = now;//填写时间--获取现在时间
        obj.CenterAuditResult = SplitArray(GetCheckBox("CenterAuditResult"));// 中心审核结果
        //obj.CenterNotThroughReason = isNullOrEmptyString($('#tCenterNotThroughReason').val());// 中心审核备注
        obj.CenterNotThroughReason = isNullOrEmptyString($('#tCenterNotThroughReason').textbox('getValue'));// 中心审核备注
        //obj.DoctorFollowUp = $('#DoctorFollowUp').val();// 医生随访--回访

        return obj;
    }
    //#endregion

    //判断审核必填项
    function GetAuditCPRValid() {
        CenterAuditResult = SplitArray(GetCheckBox("CenterAuditResult"));// 中心审核结果
        CenterNotThroughReason = isNullOrEmptyString($('#tCenterNotThroughReason').textbox('getValue'));// 中心审核备注
        if (CenterAuditResult == "") {
            AuditCPRAlert += " 心肺复苏审核结果";
        }
        if (CenterAuditResult == "未通过") {
            if (CenterNotThroughReason == "") {
                AuditCPRAlert += " 心肺复苏审核备注";
            }
        }
        //20160222--注释--许科说不用必填项
        //if (IFLeaveHospital == "") {
        //    AuditCPRAlert += " 是否出院";
        //}
        //if (LeaveHospitalDate == "") {
        //    AuditCPRAlert += " 复苏后出院日期";
        //}
        //if (LeaveHospitalCPC == "") {
        //    AuditCPRAlert += " 出院时CPC数值";
        //}

        if (AuditCPRAlert.length > 0)
            AuditCPRAlert += " 没有填写！";
    }
    //#endregion

    //#region 分中心抽查病历对象赋值
    function GetSubCenterPRSpotChecks(SpotChecks) {

        var now = new Date();
        var m = now.getMonth() + 1;
        var d = now.getDate();
        var h = now.getHours();
        var mi = now.getMinutes();
        var s = now.getSeconds();
        var DateNow = now.getFullYear() + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d) + ' ' + (h < 10 ? '0' + h : h) + ':' + (mi < 10 ? '0' + mi : mi) + ':' + (s < 10 ? '0' + s : s);
        var obj = new Object();
        obj.TaskCode = TaskCode;
        obj.PatientOrder = PatientOrder;
        obj.SubCenterSpotChecksResult = SplitArray(GetCheckBox("SubCenterSpotChecksResult"));// 分中心抽查结果
        obj.SubCenterSpotChecksUnqualifiedReason = isNullOrEmptyString($('#SubCenterSpotChecksUnqualifiedReason').combobox('getValue'));// 分中心抽查结果不合格原因
        //obj.SubCenterSpotChecksRmark = isNullOrEmptyString($('#tSubCenterSpotChecksRmark').val());// 分中心抽查备注
        obj.SubCenterSpotChecksRmark = isNullOrEmptyString($('#tSubCenterSpotChecksRmark').textbox('getValue'));// 分中心抽查备注
        if (SpotChecks == "-1") {
            obj.SubCenterIFSpotChecks = false;
            obj.SubCenterPerson = "";//分中心抽查填写人姓名;
            obj.SubCenterSpotChecksTime = "";//分中心抽查填写时间--
        }
        else {
            obj.SubCenterIFSpotChecks = true;
            obj.SubCenterPerson = '@ViewData["AgentName"]';//分中心抽查填写人姓名;
            obj.SubCenterSpotChecksTime = DateNow;//分中心抽查填写时间--获取现在时间
        }
        return obj;
    }
    //#endregion

    //#region 中心抽查病历对象赋值
    function GetCenterPRSpotChecks(SpotChecks) {

        var now = new Date();
        var m = now.getMonth() + 1;
        var d = now.getDate();
        var h = now.getHours();
        var mi = now.getMinutes();
        var s = now.getSeconds();
        var DateNow = now.getFullYear() + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d) + ' ' + (h < 10 ? '0' + h : h) + ':' + (mi < 10 ? '0' + mi : mi) + ':' + (s < 10 ? '0' + s : s);
        var obj = new Object();
        obj.TaskCode = TaskCode;
        obj.PatientOrder = PatientOrder;
        if (CenterSpotChecksResult != SplitArray(GetCheckBox("CenterSpotChecksResult"))
            || CenterSpotChecksUnqualifiedReason != isNullOrEmptyString($('#CenterSpotChecksUnqualifiedReason').combobox('getValue'))
            || MedicalHistoryWritingProgress != SplitArray(GetCheckBox("CheckBox_MedicalHistoryWritingProgress"))) {

            obj.CenterSpotChecksPerson = '@ViewData["AgentName"]';//中心抽查填写人姓名;
            obj.CenterSpotChecksTime = DateNow;//中心抽查填写时间--获取现在时间
        }
        else {
            obj.CenterSpotChecksPerson = CenterSpotChecksPerson;//中心抽查填写人姓名;
            obj.CenterSpotChecksTime = CenterSpotChecksTime;//中心抽查填写时间--
        }
        if (SpotChecks == "-1") {
            obj.CenterIFSpotChecks = false;
            obj.CenterSpotChecksPerson = "";//中心抽查填写人姓名;
            obj.CenterSpotChecksTime = "";//中心抽查填写时间--
        }
        else
            obj.CenterIFSpotChecks = true;
        obj.CenterSpotChecksResult = SplitArray(GetCheckBox("CenterSpotChecksResult"));// 中心抽查结果
        obj.CenterSpotChecksUnqualifiedReason = isNullOrEmptyString($('#CenterSpotChecksUnqualifiedReason').combobox('getValue'));// 中心抽查结果不合格原因
        //obj.CenterSpotChecksRmark = isNullOrEmptyString($('#tCenterSpotChecksRmark').val());// 中心抽查备注
        obj.CenterSpotChecksRmark = isNullOrEmptyString($('#tCenterSpotChecksRmark').textbox('getValue'));// 中心抽查备注
        obj.IFMedicalHistoryWritingProgress = SplitArray(GetCheckBox("CheckBox_MedicalHistoryWritingProgress"));// 病史书写进步--20151124

        obj.IFNoticeAttendNursingLectures = SplitArray(GetCheckBox("NoticeAttendNursingLectures"));// 通知参加本月病历小讲课--20151124
        if (NoticeAttendNursingLectures != SplitArray(GetCheckBox("NoticeAttendNursingLectures"))) {
            obj.NoticeAttendPerson = '@ViewData["AgentName"]';//通知参加小讲课填写人姓名;20151208
            obj.NoticeAttendTime = DateNow;//通知参加小讲课填写时间--获取现在时间20151208
        }
        else {
            if (SplitArray(GetCheckBox("NoticeAttendNursingLectures")) != "") {
                obj.NoticeAttendPerson = NoticeAttendPerson;//通知参加小讲课填写人姓名;
                obj.NoticeAttendTime = NoticeAttendTime;//通知参加小讲课填写时间
            }
            else {
                obj.NoticeAttendPerson = "";//补实际参加小讲课填写人姓名;
                obj.NoticeAttendTime = "";//补实际参加小讲课填写时间
            }
        }

        obj.ActualAttendNursingLectures = SplitArray(GetCheckBox("ActualAttendNursingLectures"));// 实际参加本月病历小讲课--20151124
        if (ActualAttendNursingLectures != SplitArray(GetCheckBox("ActualAttendNursingLectures"))) {
            obj.ActualAttendPerson = '@ViewData["AgentName"]';//实际参加小讲课填写人姓名;20151208
            obj.ActualAttendTime = DateNow;//实际参加小讲课填写时间--获取现在时间20151208
        }
        else {
            if (SplitArray(GetCheckBox("ActualAttendNursingLectures")) != "") {
                obj.ActualAttendPerson = ActualAttendPerson;//实际参加小讲课填写人姓名;
                obj.ActualAttendTime = ActualAttendTime;//实际参加小讲课填写时间
            }
            else {
                obj.ActualAttendPerson = "";//补实际参加小讲课填写人姓名;
                obj.ActualAttendTime = "";//补实际参加小讲课填写时间
            }
        }

        obj.IFFillNoticeAttendNursingLectures = SplitArray(GetCheckBox("FillNoticeAttendNursingLectures"));// 补通知参加本月病历小讲课--20151124
        if (FillNoticeAttendNursingLectures != SplitArray(GetCheckBox("FillNoticeAttendNursingLectures"))) {
            obj.FillNoticeAttendPerson = '@ViewData["AgentName"]';//补通知参加小讲课填写人姓名;20151208
            obj.FillNoticeAttendTime = DateNow;//补通知参加小讲课填写时间--获取现在时间20151208
        }
        else {
            if (SplitArray(GetCheckBox("FillNoticeAttendNursingLectures")) != "") {
                obj.FillNoticeAttendPerson = FillNoticeAttendPerson;//补通知参加小讲课填写人姓名;
                obj.FillNoticeAttendTime = FillNoticeAttendTime;//补通知参加小讲课填写时间
            }
            else {
                obj.FillNoticeAttendPerson = "";//补实际参加小讲课填写人姓名;
                obj.FillNoticeAttendTime = "";//补实际参加小讲课填写时间
            }
        }

        obj.FillActualAttendNursingLectures = SplitArray(GetCheckBox("FillActualAttendNursingLectures"));// 补实际参加本月病历小讲课--20151124
        if (FillActualAttendNursingLectures != SplitArray(GetCheckBox("FillActualAttendNursingLectures"))) {
            obj.FillActualAttendPerson = '@ViewData["AgentName"]';//补实际参加小讲课填写人姓名;20151208
            obj.FillActualAttendTime = DateNow;//补实际参加小讲课填写时间--获取现在时间20151208
        }
        else {
            if (SplitArray(GetCheckBox("FillActualAttendNursingLectures")) != "") {
                obj.FillActualAttendPerson = FillActualAttendPerson;//补实际参加小讲课填写人姓名;
                obj.FillActualAttendTime = FillActualAttendTime;//补实际参加小讲课填写时间
            }
            else {
                obj.FillActualAttendPerson = "";//补实际参加小讲课填写人姓名;
                obj.FillActualAttendTime = "";//补实际参加小讲课填写时间
            }
        }

        obj.IFFill2NoticeAttendNursingLectures = SplitArray(GetCheckBox("Fill2NoticeAttendNursingLectures"));// 补2通知参加本月病历小讲课--20151209
        if (Fill2NoticeAttendNursingLectures != SplitArray(GetCheckBox("Fill2NoticeAttendNursingLectures"))) {
            obj.Fill2NoticeAttendPerson = '@ViewData["AgentName"]';//补2通知参加小讲课填写人姓名;20151209
            obj.Fill2NoticeAttendTime = DateNow;//补2通知参加小讲课填写时间--获取现在时间20151209
        }
        else {
            if (SplitArray(GetCheckBox("Fill2NoticeAttendNursingLectures")) != "") {
                obj.Fill2NoticeAttendPerson = Fill2NoticeAttendPerson;//补2通知参加小讲课填写人姓名;
                obj.Fill2NoticeAttendTime = Fill2NoticeAttendTime;//补2通知参加小讲课填写时间
            }
            else {
                obj.Fill2NoticeAttendPerson = "";//补2实际参加小讲课填写人姓名;
                obj.Fill2NoticeAttendTime = "";//补2实际参加小讲课填写时间
            }
        }

        obj.Fill2ActualAttendNursingLectures = SplitArray(GetCheckBox("Fill2ActualAttendNursingLectures"));// 补2实际参加本月病历小讲课--20151209
        if (Fill2ActualAttendNursingLectures != SplitArray(GetCheckBox("Fill2ActualAttendNursingLectures"))) {
            obj.Fill2ActualAttendPerson = '@ViewData["AgentName"]';//补2实际参加小讲课填写人姓名;20151209
            obj.Fill2ActualAttendTime = DateNow;//补2实际参加小讲课填写时间--获取现在时间20151209
        }
        else {
            if (SplitArray(GetCheckBox("Fill2ActualAttendNursingLectures")) != "") {
                obj.Fill2ActualAttendPerson = Fill2ActualAttendPerson;//补2实际参加小讲课填写人姓名;
                obj.Fill2ActualAttendTime = Fill2ActualAttendTime;//补2实际参加小讲课填写时间
            }
            else {
                obj.Fill2ActualAttendPerson = "";//补2实际参加小讲课填写人姓名;
                obj.Fill2ActualAttendTime = "";//补2实际参加小讲课填写时间
            }
        }
        return obj;
    }
    //#endregion

    //判断抽查必填项
    function GetSpotChecksValid(orderNumber) {
        if (orderNumber == -1) {
            var SubCenterSpotChecksResults = SplitArray(GetCheckBox("SubCenterSpotChecksResult"));// 分中心抽查结果
            var SubCenterSpotChecksRmarks = isNullOrEmptyString($('#tSubCenterSpotChecksRmark').textbox('getValue'));// 分中心抽查备注
            var SubCenterSpotChecksUnqualifiedReasons = isNullOrEmptyString($('#SubCenterSpotChecksUnqualifiedReason').combobox('getValue'));// 分中心抽查结果不合格原因
            if (SubCenterSpotChecksResults == "") {
                SpotChecksAlert += " 分组抽查结果";
            }
            //20161129--不合格修改为未通过
            if (SubCenterSpotChecksResults == "未通过") {
                if (SubCenterSpotChecksUnqualifiedReasons == "") {
                    SpotChecksAlert += " 分组抽查不通过原因";
                }
            }
            if (SubCenterSpotChecksRmarks == "") {
                SpotChecksAlert += " 分组抽查备注";
            }
            if (SubCenterSpotChecksResults == "" && (SubCenterSpotChecksRmarks == " " || SubCenterSpotChecksRmarks == "") && SubCenterSpotChecksUnqualifiedReasons == "") {

                SpotChecksAlert = "-1";
            }
        }
        else {
            var CenterSpotChecksResults = SplitArray(GetCheckBox("CenterSpotChecksResult"));// 中心抽查结果
            var CenterSpotChecksRmarks = isNullOrEmptyString($('#tCenterSpotChecksRmark').textbox('getValue'));// 中心抽查备注
            var CenterSpotChecksUnqualifiedReasons = isNullOrEmptyString($('#CenterSpotChecksUnqualifiedReason').combobox('getValue'));// 中心抽查结果不合格原因
            if (CenterSpotChecksResults == "") {
                SpotChecksAlert += " 中心抽查结果";
            }
            //20161129--不合格修改为不通过
            if (CenterSpotChecksResults == "不通过") {
                if (CenterSpotChecksUnqualifiedReasons == "") {
                    SpotChecksAlert += " 中心抽查不通过原因";
                }
            }
            if (CenterSpotChecksRmarks == "") {
                SpotChecksAlert += " 中心抽查备注";
            }
            var IFMedicalHistoryWritingProgress = SplitArray(GetCheckBox("CheckBox_MedicalHistoryWritingProgress"));// 病史书写进步--20151124
            var IFNoticeAttendNursingLectures = SplitArray(GetCheckBox("NoticeAttendNursingLectures"));// 通知参加本月病历小讲课--20151124
            var ActualAttendNursingLectures = SplitArray(GetCheckBox("ActualAttendNursingLectures"));// 实际参加本月病历小讲课--20151124
            var IFFillNoticeAttendNursingLectures = SplitArray(GetCheckBox("FillNoticeAttendNursingLectures"));// 补通知参加本月病历小讲课--20151124
            var FillActualAttendNursingLectures = SplitArray(GetCheckBox("FillActualAttendNursingLectures"));// 补实际参加本月病历小讲课--20151124
            var IFFill2NoticeAttendNursingLectures = SplitArray(GetCheckBox("Fill2NoticeAttendNursingLectures"));// 补2通知参加本月病历小讲课--20151209
            var Fill2ActualAttendNursingLectures = SplitArray(GetCheckBox("Fill2ActualAttendNursingLectures"));// 补2实际参加本月病历小讲课--20151209
            if (CenterSpotChecksResults == "" && (CenterSpotChecksRmarks == " " || CenterSpotChecksRmarks == "") && CenterSpotChecksUnqualifiedReasons == "" && IFMedicalHistoryWritingProgress == ""
                && IFNoticeAttendNursingLectures == "" && ActualAttendNursingLectures == "" && IFFillNoticeAttendNursingLectures == ""
                && FillActualAttendNursingLectures == "" && IFFill2NoticeAttendNursingLectures == "" && Fill2ActualAttendNursingLectures == "") {

                SpotChecksAlert = "-1";
            }

        }
        if (SpotChecksAlert == "-1") {
            SpotChecksAlert = "-1";
        }
        else if (SpotChecksAlert != "-1" && SpotChecksAlert.length > 0)
            SpotChecksAlert += " 没有填写！";
    }
    //#endregion

    //获取控件值给变量
    function GetControlValueToVariable() {
        //
        AlarmType = SplitArray(GetCheckBox("alarmEventType")); //事件类型
        EmptyReason = SplitArray(GetCheckBox("EmptyReason")); //空车原因
        EmptyReasonSupplement = $('#EmptyReasonSupplement').val();//空车原因补充
        IsSeePeople = SplitArray(GetCheckBox("IsSeePeople"));
        Name = $('#Name').val();//姓名
        Sex = SplitArray(GetCheckBox("Sex")); //性别
        //Age = $('#Age').val();//年龄
        Age = $('#Age').numberbox('getValue');//年龄
        AgeType = $('#AgeType').combobox('getValue'); //年龄类型
        StationCode = isNullOrEmptyString($('#Station').combobox('getValue')); // 分站编码
        Station = isNullOrEmptyString($('#Station').combobox('getText')); // 分站
        LocalAddress = $('#LocalAddress').val();//呼救地址
        DrivingTime = isNullOrEmptyString($('#DrivingTime').datetimebox('getValue'));//出车时间
        ArriveSceneTime = isNullOrEmptyString($('#ArriveSceneTime').datetimebox('getValue'));//到达现场
        SendAddress = isNullOrEmptyString($('#SendAddress').datebox('getText').replace(/\\/g, ""));//送往地点-20150828增加替换'\'
        LeaveSceneTime = isNullOrEmptyString($('#LeaveSceneTime').datetimebox('getValue'));//离开现场
        ArriveDestinationTime = isNullOrEmptyString($('#ArriveDestinationTime').datetimebox('getValue'));//到达时间
        DoctorAndNurse = $('#DoctorAndNurse').val();//急救医护
        TeachingPractice = $('#TeachingPractice').val();//带教实习
        Driver = $('#Driver').val();//驾驶员
        StretcherBearers = $('#StretcherBearers').val();//担架员

        ProvideMedicalHistoryPeople = SplitArray(GetCheckBox("ProvideMedicalHistoryPeople")); //供史人
        DiseasesClassification = SplitArray(GetCheckBox("DiseasesClassification")); //病种分类
        DiseasesClassificationSupplement = GetComboboxMultiple(isNullOrEmptyString("DiseasesClassificationSupplement"));//病种分类补充

        ContactTelephone = $('#ContactTelephone').val();//患者联系方式
        //AlarmReason = $('#tAlarmReasons').val();//主诉
        AlarmReason = $('#tAlarmReason').textbox('getValue');//主诉
        //HistoryOfPresentIllness = $('#HidHistoryOfPresentIllness').val();//现病史
        HistoryOfPresentIllness = $('#tHistoryOfPresentIllness').textbox('getValue');//现病史
        SaveOneselfMeasures = SplitArray(GetCheckBox("SaveOneselfMeasures"));// 自救措施-20150917
        SaveOneselfMeasuresSupplement = $('#SaveOneselfMeasuresSupplement').val();//自救措施补充说明-20150917
        PastMedicalHistory = SplitArray(GetCheckBox("PastMedicalHistory")); //既往病史
        PastMedicalHistorySupplement = $('#PastMedicalHistorySupplement').val();//既往病史的补充说明

        //转(出)院病情记录
        DischargeDiagnosis = $('#DischargeDiagnosis').val();//转出院诊断
        HospitalMeasuresTreatment = $('#HospitalMeasuresTreatment').val();//院内主要治疗措施
        AtPresentPatientSymptom = $('#AtPresentPatientSymptom').val();//目前患者症状

        //体检
        tiJianChoose = isNullOrEmptyString(SplitArray(GetCheckBox("tiJianChoose"))); //体检选择
        TChoose = isNullOrEmptyString($('#TChoose').combobox('getValue'));//T选择
        //tT = $('#tT').val();//T
        tT = $('#tT').numberbox('getValue');//T
        PChoose = isNullOrEmptyString($('#PChoose').combobox('getValue'));//P选择
        //tP = $('#tP').val();//
        tP = $('#tP').numberbox('getValue');//
        RChoose = isNullOrEmptyString($('#RChoose').combobox('getValue'));//R选择
        //tR = $('#tR').val();//
        tR = $('#tR').numberbox('getValue');//
        BP = isNullOrEmptyString($('#BP').combobox('getValue'));//BP选择
        tBP1 = $('#tBP1').numberbox('getValue');//
        tBP2 = $('#tBP2').numberbox('getValue');//
        kPa1 = $('#kPa1').numberbox('getValue');//
        kPa2 = $('#kPa2').numberbox('getValue');//
        //tBP1 = $('#tBP1').val();//
        //tBP2 = $('#tBP2').val();//
        //kPa1 = $('#kPa1').val();//
        //kPa2 = $('#kPa2').val();//
        Consciousness = isNullOrEmptyString($('#Consciousness').combobox('getValue'));//意识
        Pupilla = isNullOrEmptyString($('#Pupilla').combobox('getValue'));//瞳孔
        PupillaSupplement = isNullOrEmptyString($('#PupillaSupplement').val());//瞳孔补充描述
        LightReflex = isNullOrEmptyString($('#LightReflex').combobox('getValue'));//对光反射
        LightReflexSupplement = isNullOrEmptyString($('#LightReflexSupplement').val());//对光反射补充描述-20151124
        Skin = SplitArray(GetCheckBox("BodyFigureModels.CheckModelIDs"));//皮肤
        SkinSupplement = $('#SkinSupplement').val();//皮肤补充描述
        Head = SplitArray(GetCheckBox("HeadModels.CheckModelIDs"));//头部
        HeadSupplement = $('#HeadSupplement').val();//头部补充描述
        Neck = SplitArray(GetCheckBox("NeckModels.CheckModelIDs"));//颈部
        NeckSupplement = $('#NeckSupplement').val();// 颈部补充描述
        Chest = SplitArray(GetCheckBox("ChestModels.CheckModelIDs"));//胸部
        ChestSupplement = $('#ChestSupplement').val();// 胸部补充描述
        ChestExtrusionTest = SplitArray(GetCheckBox("ChestExtrusionTest"));//胸廓挤压试验
        Lungs = SplitArray(GetCheckBox("LungModels.CheckModelIDs"));//肺脏
        TwoLungBreathingSound = isNullOrEmptyString($('#TwoLungBreathingSound').combobox('getValue'));// 肺脏--两肺呼吸音
        LeftLung = SplitArray(GetCheckBox("LungLeftModels.CheckModelIDs"));//左肺
        RightLung = SplitArray(GetCheckBox("LungRightModels.CheckModelIDs"));//右肺
        LungsSupplement = $('#LungsSupplement').val();//肺脏补充描述
        Heart = isNullOrEmptyString($('#Heart').combobox('getValue'));// 心脏
        //HeartRate = $('#HeartRate').val();// 心率
        HeartRate = $('#HeartRate').numberbox('getValue');// 心率--修改为numberbox20160926
        HeartRhythm = isNullOrEmptyString($('#HeartRhythm').combobox('getValue'));// 心律
        HeartMurmur = isNullOrEmptyString($('#HeartMurmur').combobox('getValue'));// 杂音
        HeartSupplement = $('#HeartSupplement').val();//心脏补充描述
        Abdomen = SplitArray(GetCheckBox("FuBuModels.CheckModelIDs"));//腹部
        AbdomenSupplement = $('#AbdomenSupplement').val();//腹部补充描述
        Spine = SplitArray(GetCheckBox("JiZhuModels.CheckModelIDs"));// 脊柱
        SpineSupplement = $('#SpineSupplement').val();//脊柱补充描述
        Limbs = SplitArray(GetCheckBox("LimbModels.CheckModelIDs"));//四肢
        LimbsSupplement = $('#LimbsSupplement').val();//四肢补充描述
        PelvicExtrusionTest = SplitArray(GetCheckBox("PelvicExtrusionTest"));// 骨盆挤压试验

        NervousSystem = isNullOrEmptyString($('#NervousSystem').combobox('getValue'));// 神经系统
        NervousSystemSupplement = $('#NervousSystemSupplement ').val();//神经系统补充描述
        NervousSystemFace = $('#NervousSystemFace ').val();//神经系统-面部
        NervousSystemSpeech = $('#NervousSystemSpeech ').val();//神经系统-言语
        LeftUpperExtremity = isNullOrEmptyString($('#LeftUpperExtremity').combobox('getValue'));// 神经系统（肌力--左上肢
        LeftLowerExtremity = isNullOrEmptyString($('#LeftLowerExtremity').combobox('getValue'));//
        RightUpperLimb = isNullOrEmptyString($('#RightUpperLimb').combobox('getValue'));//
        RightLowerLimb = isNullOrEmptyString($('#RightLowerLimb').combobox('getValue'));//
        MuscularTension = isNullOrEmptyString($('#MuscularTension').combobox('getValue'));//神经系统--肌张力
        BabinskiSign = SplitArray(GetCheckBox("BabinskiSign"));// 神经系统--巴氏征

        ObstetricExamination = isNullOrEmptyString($('#ObstetricExamination').combobox('getValue'));//产科检查选择
        GongGaoCartilagoEnsiformis = $('#GongGaoCartilagoEnsiformis').val();//
        GongGaoNavel = $('#GongGaoNavel').val();//
        GongGaoSuprapubic = $('#GongGaoSuprapubic').val();//
        GongGaoBelowUmbilicus = $('#GongGaoBelowUmbilicus').val();//产科检查（宫高：脐下）
        ObstetricExaminationSupplement = $('#ObstetricExaminationSupplement').val();//产科检查补充描述

        PhysicalExaminationSupplement = $('#PhysicalExaminationSupplement').val();//体检补充描述-20150917
        //OtherNecessaryRecord = $('#tOtherNecessaryRecord').val();// 其他必要记录
        //OtherNecessaryRecord = $('#tOtherNecessaryRecords').val();//其他必要记录
        OtherNecessaryRecord = $('#tOtherNecessaryRecord').textbox('getValue');// 其他必要记录

        //GCS评分
        GCSScore = $('#lblGCSPF').html();//GCS评分累计评分
        OpenReaction = isNullOrEmptyString($('#OpenReaction').combobox('getText'));//睁眼反应
        OpenReactionScore = isNullOrEmptyInt($('#OpenReaction').combobox('getValue'));//睁眼反应分数
        LanguageReaction = isNullOrEmptyString($('#LanguageReaction').combobox('getText'));// 语言反应
        LanguageReactionScore = isNullOrEmptyInt($('#LanguageReaction').combobox('getValue'));// 语言反应分数
        MotionResponse = isNullOrEmptyString($('#MotionResponse').combobox('getText'));// 运动反应
        MotionResponseScore = isNullOrEmptyInt($('#MotionResponse').combobox('getValue'));// 运动反应分数

        //创伤指数(TI)评分
        TIScore = $('#lblTIPF').html();//创伤指数(TI)评分累计评分
        Position = SplitArray(GetCheckBox("Position"));// 部位
        PositionScore = isNullOrEmptyInt(GetCheckBoxValueTotal("Position"));// 部位--分数
        DamageWay = SplitArray(GetCheckBox("DamageWay"));// 损伤方式
        DamageWayScore = isNullOrEmptyInt(GetCheckBoxValueTotal("DamageWay"));// 损伤方式--分数
        CirculationChange = SplitArray(GetCheckBox("CirculationChange"));// 循环改变
        CirculationChangeScore = isNullOrEmptyInt(GetCheckBoxValueTotal("CirculationChange"));// 循环改变--分数
        BreathingChange = SplitArray(GetCheckBox("BreathingChange"));// 呼吸改变
        BreathingChangeScore = isNullOrEmptyInt(GetCheckBoxValueTotal("BreathingChange"));// 呼吸改变--分数
        ConsciousnessChange = SplitArray(GetCheckBox("ConsciousnessChange"));// 意识改变
        ConsciousnessChangeScore = isNullOrEmptyInt(GetCheckBoxValueTotal("ConsciousnessChange"));// 意识改变--分数

        //Apgar评分
        ApgarScore = $('#lblApgarPF').html();//Apgar评分累计评分
        HeartRatePerMinute = SplitArray(GetCheckBox("rblMeiFenZhongXinLv"));// 每分钟心率
        HeartRatePerMinuteScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblMeiFenZhongXinLv")));// 每分钟心率--分数
        Breathing = SplitArray(GetCheckBox("rblHuXi"));// 呼吸
        BreathingScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblHuXi")));// 呼吸--分数
        MuscleTension = SplitArray(GetCheckBox("rblJiZhangLi"));// 肌张力
        MuscleTensionScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblJiZhangLi")));// 肌张力--分数
        LaryngealReflex = SplitArray(GetCheckBox("rblHouFanShe"));// 喉反射
        LaryngealReflexScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblHouFanShe")));// 喉反射--分数
        SkinColor = SplitArray(GetCheckBox("rblPiFuYanSe"));// 皮肤颜色
        SkinColorScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblPiFuYanSe")));// 皮肤颜色--分数

        //心电图印象
        ECGSelect = isNullOrEmptyString($('#ECG').combobox('getValue'));//心电图印象
        ECGImpression = $('#ECGImpression').val();//
        ECGImpressionCodes = $('#HidECGImpressionIDs').val();//心电图印象编码串
        ECGImpressionSupplement = $('#ECGImpressionSupplement').val();//心电图印象其他
        ECGImpressionRetestI = $('#ECGImpressionRetestI').val();//
        ECGImpressionRetestICodes = $('#HidECGImpressionRetestICodes').val();//
        ECGImpressionRetestISupplement = $('#ECGImpressionRetestISupplement').val();//
        ECGImpressionRetestII = $('#ECGImpressionRetestII').val();//
        ECGImpressionRetestIICodes = $('#HidECGImpressionRetestIICodes').val();//
        ECGImpressionRetestIISupplement = $('#ECGImpressionRetestIISupplement').val();//
        ECGImpressionDoubt = $('#ECGImpressionDoubt').val();//心电图印象疑问-20150917
        ECGImpressionRetestIDoubt = $('#ECGImpressionRetestIDoubt').val();//心电图印象复查1疑问-20150917
        ECGImpressionRetestIIDoubt = $('#ECGImpressionRetestIIDoubt').val();//心电图印象复查2疑问-20150917
        TwelveDaoLian = SplitArray(GetCheckBox("CheckBox_DaoLian"));// 12导联-20151125

        //血糖
        BloodSugarSelect = isNullOrEmptyString($('#BloodSugarSelect').combobox('getValue'));// 血糖
        BloodSugar = $('#BloodSugar').val();
        BloodSugarRetestI = $('#BloodSugarRetestI').val();//血糖复查1
        BloodSugarRetestII = $('#BloodSugarRetestII').val();//血糖复查2

        //血氧饱和度
        BloodOxygenSelect = isNullOrEmptyString($('#BloodOxygenSelect').combobox('getValue'));//血氧饱和度选择
        BloodOxygen = $('#BloodOxygen').val();
        BloodOxygenRetestI = $('#BloodOxygenRetestI').val();//血氧饱和度复查1
        BloodOxygenRetestII = $('#BloodOxygenRetestII').val();//血氧饱和度复查2

        SymptomPendingInvestigation = $('#SymptomPendingInvestigation').val();// 初步印象--症状待查
        SymptomPendingInvestigationCodes = $('#HidSymptomPendingInvestigationIDs').val();// 初步印象--症状待查编码串
        SymptomPendingInvestigationSupplement = $('#SymptomPendingInvestigationSupplement').val();// 初步印象--症状待查其他
        PrimaryDiagnoses = $('#PrimaryDiagnoses').val();// 初步印象
        PrimaryDiagnosesCodes = $('#HidPrimaryDiagnosesIDs').val();// 初步印象编码串
        PrimaryDiagnosesSupplement = $('#PrimaryDiagnosesSupplement').val();// 初步印象其他
        FirstImpressionDoubt = $('#FirstImpressionDoubt').val();//初步印象复查2疑问-20150917

        IFRefuseTreatment = SplitArray(GetCheckBox("IFRefuseTreatment"));// 是否拒绝治疗选择（救治记录）
        RescueType = isNullOrEmptyString(SplitArray(GetCheckBox("RescueType")));// 抢救类型（救治记录）

        //心肺复苏
        CPRSelect = SplitArray(GetCheckBox("CPRSelect"));// 心肺复苏选择
        Witness = SplitArray(GetCheckBox("Witness"));// 目击者
        CarToBeforeCPR = SplitArray(GetCheckBox("CarToBeforeCPR"));// 车到前CPR
        CarToBeforeDefibrillation = SplitArray(GetCheckBox("CarToBeforeDefibrillation"));// 车到前除颤
        CardiacArrestReason = isNullOrEmptyString($('#CardiacArrestReason').combobox('getValue'));// 心脏骤停可能原因
        CardiacArrestReasonSupplement = $('#CardiacArrestReasonSupplement').val();// 心脏骤停补充说明
        BeforeResuscitationECGDiagnosis = isNullOrEmptyString($('#BeforeResuscitationECGDiagnosis').combobox('getValue'));// 复苏前心电图诊断-20150917
        //BeforeResuscitationSaO2 = $('#BeforeResuscitationSaO2').textbox('getText');// 复苏前SaO2
        AfterResuscitationBP = $('#AfterResuscitationBP').val();// 复苏后BP
        AfterResuscitationSaO2 = $('#AfterResuscitationSaO2').val();// 复苏后SaO2
        PulsationAppearTime = isNullOrEmptyString($('#PulsationAppearTime').datetimebox('getValue'));// 颈A搏动出现时间
        BreatheAppearTime = isNullOrEmptyString($('#BreatheAppearTime').datetimebox('getValue'));// 自主呼吸出现时间
        AfterResuscitationECGDiagnosis = $('#AfterResuscitationECGDiagnosis').val();// 复苏后心电图诊断
        IFAdmittedToHospital = SplitArray(GetCheckBox("IFAdmittedToHospital"));// 是否入院
        IFLeaveHospital = SplitArray(GetCheckBox("IFLeaveHospital"));// 是否出院
        LeaveHospitalDate = isNullOrEmptyString($('#LeaveHospitalDate').datebox('getValue'));// 复苏后出院日期
        LeaveHospitalCPC = isNullOrEmptyString($('#LeaveHospitalCPC').combobox('getValue'));// 出院时CPC数值-20150918
        VerifyResults = isNullOrEmptyString($('#VerifyResults').combobox('getValue'));// 急救科核实结果
        VerifyPerson = $('#VerifyPerson').val();// 核实人员
        VerifyTime = isNullOrEmptyString($('#VerifyDate').datebox('getValue'));// 核实时间
        AttackPlace = isNullOrEmptyString($('#AttackPlace').combobox('getValue'));// 发病地点-20150917
        CPRArriveSceneTime = isNullOrEmptyString($('#CPRArriveSceneTime').datetimebox('getValue'));// 到达现场时间-20150917
        ChestCompression = SplitArray(GetCheckBox("ChestCompression"));// 胸外按压-20150917
        StartChestCompressionTime = isNullOrEmptyString($('#StartChestCompressionTime').datetimebox('getValue'));// 开始胸外按压时间-20150917
        Defibrillation = SplitArray(GetCheckBox("Defibrillation"));// 除颤-20150917
        FirstDefibrillationTime = isNullOrEmptyString($('#FirstDefibrillationTime').datetimebox('getValue'));// 首次除颤时间-20150917
        IntervalTime = $('#IntervalTime').val();// 间隔时间20150917
        WitnessHeartbeatBreatheArrest = SplitArray(GetCheckBox("WitnessHeartbeatBreatheArrest"));//目击下心跳呼吸骤停20160107
        //RegistrationPerson;//登记人(可能页面不需要)
        //RegistrationTime;//登记时间(可能页面不需要)

        //
        IllState = isNullOrEmptyString($('#IllState').combobox('getValue'));// 病情分类
        IllStateReport = isNullOrEmptyString($('#IllStateReport').combobox('getValue'));// 病情预报
        DeathCase = isNullOrEmptyString($('#DeathCase').combobox('getValue'));// 死亡病例--20160328修改为“呼吸心跳停止”
        DeathCertificate = isNullOrEmptyString($('#DeathCertificate').combobox('getValue'));// 死亡证明
        FirstAidEffect = isNullOrEmptyString($('#FirstAidEffect').combobox('getValue'));// 急救效果
        MajorEmergencies = isNullOrEmptyString($('#MajorEmergencies').combobox('getValue'));// 重大突发事件
        DiseaseCooperation = isNullOrEmptyString($('#DiseaseCooperation').combobox('getValue'));// 病家合作度
        DiseaseNotCooperationSupplement = $('#DiseaseNotCooperationSupplement').val();// 病家不合作补充说明
        DoctorFollowUp = $('#DoctorFollowUp').val();// 医生随访
        DoctorFollowUpReason = isNullOrEmptyString($('#DoctorFollowUpReason').combobox('getValue'));// 回访原因-20150917
        Remark = $('#Remark').val();// 备注
        FormedConsent = SplitArray(GetCheckBox("IFFormedConsent"));// 告知签字-20151214

        MedicalGuide = SplitArray(GetCheckBox("IFMedicalGuide"));// 远程医学指导-20180408 add2023-02-10 plq 青浦移植

        DrivingTimeSupplement = isNullOrEmptyString($('#DrivingTimeSupplement').combobox('getValue'));// 出车时间补充说明-20160115
        ArriveSceneTimeSupplement = isNullOrEmptyString($('#ArriveSceneTimeSupplement').combobox('getValue'));// 到达现场补充说明
        LeaveSceneTimeSupplement = isNullOrEmptyString($('#LeaveSceneTimeSupplement').combobox('getValue'));// 离开现场补充说明
        ArriveDestinationTimeSupplement = isNullOrEmptyString($('#ArriveDestinationTimeSupplement').combobox('getValue'));// 到达时间补充说明
        MeasureInformation = isNullOrEmptyString($('#tMeasureInformation').textbox('getValue')); //诊疗操作 add2022-08-17 plq--闵行移植


        ////2022-10-11 zch //add2024-08-23 plq 移植
        ECGImpressionFirstTime = isNullOrEmptyString($('#ECGImpressionFirstTime').datetimebox('getValue'));
        ECGImpressionLastTime = isNullOrEmptyString($('#ECGImpressionLastTime').datetimebox('getValue'));
        //2024-03-04 zch //add2024-08-23 plq 移植
        NotSufficientRevivingReason = isNullOrEmptyString($('#NotSufficientRevivingReason').combobox('getValue'));
        NotSufficientRevivingReasonSupplement = $('#NotSufficientRevivingReasonSupplement').val();
    }
   //#endregion

    //公共信息必填验证---所有类型病历 add2022-03-01 plq
    function GetCommonInfoValid() {
        if (Station == "") {
            Alert += " 站(点)名";
        }
        if (DoctorAndNurse == "") {
            Alert += " 急救医护";
        }
        if (Driver == "") {
            Alert += " 驾驶员";
        }
        if (StretcherBearers == "") {
            Alert += " 担架员";
        }
    }

    //基础信息必填项验证
    function GetBaseInfoValid() {
        if (Name == "") {
            Alert += " 患者姓名";
        }
        if (Sex == "") {
            Alert += " 性别";
        }
        if (AgeType != "不详" && AgeType != "新生儿") {
            if (Age == "") {
                Alert += " 年龄";
            }
        }
        if (AgeType == "") {
            Alert += " 年龄单位";//20160202
        }
        if (Station == "") {
            Alert += "站(点)名";
        }
        if (LocalAddress == "") {
            Alert += " 呼救地址";
        }
        if (SendAddress == "") {
            Alert += " 送往地点";
        }

        var DrivingTime = isNullOrEmptyString($('#DrivingTime').datetimebox('getValue').replace(/-/g, "/"));//出车时间
        var lblDrivingTime = $('#lblDrivingTime').html().replace(/-/g, "/");
        if (DrivingTime != '') {
            DrivingTime = Date.parse(DrivingTime);//
        }
        if (lblDrivingTime != '') {
            lblDrivingTime = Date.parse(lblDrivingTime);//
        }
        if (DrivingTime == "") {
            Alert += " 出车时间";
        }
        if (lblDrivingTime != DrivingTime || DrivingTime == '') {
            if (DrivingTimeSupplement == "") {
                Alert += " 出车时间补充";
            }
        }

        var ArriveSceneTime = isNullOrEmptyString($('#ArriveSceneTime').datetimebox('getValue').replace(/-/g, "/"));//到达现场
        var lblArriveSceneTime = $('#lblArriveSceneTime').html().replace(/-/g, "/");
        if (ArriveSceneTime != '') {
            ArriveSceneTime = Date.parse(ArriveSceneTime);//
        }
        if (lblArriveSceneTime != '') {
            lblArriveSceneTime = Date.parse(lblArriveSceneTime);//
        }
        if (ArriveSceneTime == "") {
            Alert += " 到达现场";
        }
        if (lblArriveSceneTime != ArriveSceneTime || ArriveSceneTime == '') {
            if (ArriveSceneTimeSupplement == "") {
                Alert += " 到达现场补充";
            }
        }

        var LeaveSceneTime = isNullOrEmptyString($('#LeaveSceneTime').datetimebox('getValue').replace(/-/g, "/"));//离开现场
        var lblLeaveSceneTime = $('#lblLeaveSceneTime').html().replace(/-/g, "/");
        if (LeaveSceneTime != '') {
            LeaveSceneTime = Date.parse(LeaveSceneTime);//
        }
        if (lblLeaveSceneTime != '') {
            lblLeaveSceneTime = Date.parse(lblLeaveSceneTime);//
        }
        if (LeaveSceneTime == "") {
            Alert += " 离开现场";
        }
        if (lblLeaveSceneTime != LeaveSceneTime || LeaveSceneTime == '') {
            if (LeaveSceneTimeSupplement == "") {
                Alert += " 离开现场补充";
            }
        }

        var ArriveDestinationTime = isNullOrEmptyString($('#ArriveDestinationTime').datetimebox('getValue').replace(/-/g, "/"));//到达时间
        var lblArriveDestinationTime = $('#lblArriveDestinationTime').html().replace(/-/g, "/");
        if (ArriveDestinationTime != '') {
            ArriveDestinationTime = Date.parse(ArriveDestinationTime);//
        }
        if (lblArriveDestinationTime != '') {
            lblArriveDestinationTime = Date.parse(lblArriveDestinationTime);//
        }
        //20161124--修改为车到未送
        if (ArriveDestinationTime == "" && SendAddress != "车到未送") {
            Alert += " 到达时间";
        }
        if ((lblArriveDestinationTime != ArriveDestinationTime || ArriveDestinationTime == '') && SendAddress != "车到未送") {
            if (ArriveDestinationTimeSupplement == "") {
                Alert += " 到达时间补充";
            }
        }
    }

    //体检必填项验证
    function GetTiJianValid() {
        if (TChoose == "" && tT == "") {
            Alert += " T";
        }
        if (PChoose == "" && tP == "") {
            Alert += " P";
        }
        if (RChoose == "" && tR == "") {
            Alert += " R";
        }
        if (BP == "" && (tBP1 == "" || tBP2 == "")) {
            Alert += " BP";
        }
        if (Consciousness == "") {
            Alert += " 意识";
        }
        if (AlarmType == "救治") {
            if (Pupilla == "") {
                Alert += " 瞳孔";
            }
            if (Pupilla == "扩大" || Pupilla == "缩小" || Pupilla == "不等" || Pupilla == "其它") {
                if (PupillaSupplement == "") {
                    Alert += " 瞳孔补充描述";
                }
            }
            if (LightReflex == "") {
                Alert += " 对光反射";
            }
            if (LightReflex == "其他") {
                if (LightReflexSupplement == "") {
                    Alert += " 对光反射补充描述";
                }
            }
            if (Skin == "") {
                Alert += " 皮肤";
            }
            if (Skin.indexOf("其它") >= 0) {
                if (SkinSupplement == "") {
                    Alert += " 皮肤补充描述";
                }
            }

            if (Lungs == "") {
                Alert += " 肺脏";
            }
            if (Lungs.indexOf("两肺呼吸音") >= 0) {
                if (TwoLungBreathingSound == "") {
                    Alert += " 两肺呼吸音选择";
                }
            }
            if (TwoLungBreathingSound.indexOf("不等") >= 0) {
                if (LungsSupplement == "") {
                    Alert += " 肺脏补充描述";
                }
            }

            if (Heart == "") {
                if (HeartRate == "") {
                    Alert += " 心率";
                }
                if (HeartRhythm == "") {
                    Alert += " 心律";
                }
            }

            if (DiseasesClassificationSupplement == "产科") {
                if (ObstetricExamination == "") {
                    if (GongGaoCartilagoEnsiformis == "" && GongGaoSuprapubic == "" && GongGaoNavel == "" && GongGaoBelowUmbilicus == "") {
                        Alert += " 宫高";
                    }
                }
            }
        }
    }

    //昏迷指数(GCS)评分必填项验证20160107
    function GetGCSScore() {
        if (Consciousness == "昏迷" && tiJianChoose != "拒查") {
            if (OpenReaction == "") {
                Alert += " 睁眼反应(GCS)";
            }
            if (LanguageReaction == "") {
                Alert += " 语言反应(GCS)";
            }
            if (MotionResponse == "") {
                Alert += " 运动反应(GCS)";
            }

        }
    }
    //创伤指数(TI)评分必填项验证20160107
    function GetTIScore() {
        //var Names = SplitArray(GetCheckBox("DiseasesClassification"));
        if (tiJianChoose != "拒查" && DiseasesClassification.indexOf("损伤性疾病") >= 0 && DiseasesClassificationSupplement != "" && DiseasesClassificationSupplement.indexOf("伤") >= 0 && DiseasesClassificationSupplement.indexOf("其他损伤性疾病") < 0) {
            if (Position == "" && DamageWay == "" && CirculationChange == "" && BreathingChange == "" && ConsciousnessChange == "") {
                Alert += " 创伤指数(TI)评分";
            }
        }
    }

    //新生儿(Apgar)评分必填项验证20160107
    function GetApgarScore() {
        if (tiJianChoose != "拒查" && DiseasesClassification.indexOf("妇产科疾病") >= 0 && DiseasesClassificationSupplement == "接生") {

            if (HeartRatePerMinute == "") {
                Alert += " 每分钟心率(Apgar)";
            }
            if (Breathing == "") {
                Alert += " 呼吸(Apgar)";
            }
            if (MuscleTension == "") {
                Alert += " 肌张力(Apgar)";
            }
            if (LaryngealReflex == "") {
                Alert += " 喉反射(Apgar)";
            }
            if (SkinColor == "") {
                Alert += " 皮肤颜色(Apgar)";
            }
        }
    }

    //初步印象必填项验证
    function GetPrimaryDiagnosesValid() {
        if (ECGImpression == "") {
            Alert += " 心电图印象";
        }
        if (BloodSugar == "") {
            Alert += " 血糖";
        }
        if (BloodOxygen == "") {
            Alert += " 血氧饱和度";
        }
        if (SymptomPendingInvestigation == "" && PrimaryDiagnoses == "") {
            Alert += " 症状待查 初步印象";
        }
        if (SymptomPendingInvestigation.indexOf("其他") >= 0) {
            if (SymptomPendingInvestigationSupplement == "") {
                Alert += " 症状待查其他";
            }
        }
        //if (PrimaryDiagnoses == "") {
        //    Alert += " 初步印象";
        //}
        if (PrimaryDiagnoses.indexOf("其他") >= 0) {
            if (PrimaryDiagnosesSupplement == "") {
                Alert += " 初步印象其他";
            }
        }
    }

    //判断救治记录必填
    function GetPRRescueCountValid() {
        var allRowsData = $("#gridPRRescueList").datagrid("getRows");
        if (allRowsData <= 0) {
            Alert += " 救治记录";
        }
    }

    //判断心肺复苏必填项
    function GetCPRValid() {
        var CPRSelect = SplitArray(GetCheckBox("CPRSelect"));// 心肺复苏选择
        if (CPRSelect == "ROSC") {
            if (AttackPlace == "") {
                Alert += " 发病地点";//20151027-增加
            }
            if (Witness == "") {
                Alert += " 目击者";
            }
            if (CarToBeforeCPR == "") {
                Alert += " 车到前CPR";
            }
            if (CarToBeforeDefibrillation == "") {
                Alert += " 车到前除颤/同步电复律";
            }
            if (CPRArriveSceneTime == "") {
                Alert += " 到达现场时间";
            }
            if (ChestCompression == "") {
                Alert += " 胸外按压";
            }
            if (BeforeResuscitationECGDiagnosis == "") {
                Alert += " 复苏前心电图诊断";
            }
            if (AfterResuscitationECGDiagnosis == "") {
                Alert += " 复苏后心电图诊断";
            }
            if (Defibrillation == "") {
                Alert += " 除颤/同步电复律";
            }
            if (AfterResuscitationBP == "") {
                Alert += " 复苏后BP";
            }
            if (AfterResuscitationSaO2 == "") {
                Alert += " 复苏后SaO2";
            }
            if (CardiacArrestReason == "") {
                Alert += " 心脏骤停可能原因";
            }
            if (CardiacArrestReason.indexOf("其他") >= 0) {
                if (CardiacArrestReasonSupplement == "") {
                    Alert += " 心脏骤停补充说明";
                }
            }
            if (PulsationAppearTime == "") {
                Alert += " 颈A搏动出现时间";
            }
            if (WitnessHeartbeatBreatheArrest == "") {
                Alert += " 目击下心跳呼吸骤停 ";//20160224增加
            }
            if (IFAdmittedToHospital == "") {
                Alert += " 是否入院";
            }
        }
    }


    function GetIllStateValid() {
        if (IllState == "") {
            Alert += " 病情分类";
        }
        if (IllStateReport == "") {
            Alert += " 病情预报";
        }
        if (IllState == "呼吸心跳停止") {
            if (DeathCase == "") {
                Alert += " 呼吸心跳停止";//死亡病例--20160328修改为“呼吸心跳停止”
            }
            if (DeathCertificate == "") {
                Alert += " 死亡证明";
            }

            var ECGImpressionValue = $('#ECGImpression').val();//心电图印象
            if (ECGImpressionValue != "" && ECGImpressionValue != "拒查" && ECGImpressionValue != "未查") {
                //首次心电图时间和末次心电图时间
                //2022-10-17 zch
                if (ECGImpressionFirstTime == "") {
                    Alert += " 首次心电图时间";
                }
                if (ECGImpressionLastTime == "") {
                    Alert += " 末次心电图时间";
                }
                //2024-03-04 zch
                if (ECGImpressionFirstTime != "" && ECGImpressionLastTime != "") {

                    var FirstTime = new Date(Date.parse(ECGImpressionFirstTime.replace(/-/g, "/")));
                    var LastTime = new Date(Date.parse(ECGImpressionLastTime.replace(/-/g, "/")));

                    if (compareTimecharge(ECGImpressionLastTime, ECGImpressionFirstTime)) {
                        Alert += " 末次心电图时间要大于首次心电图时间";
                    }
                    //2024-03-04 zch  未充分复苏原因
                    var SendAddress = isNullOrEmptyString($('#SendAddress').combobox('getValue'));
                    if (SendAddress != "" && SendAddress.indexOf("车到不送") >= 0) {
                        // 计算两个日期之间的毫秒差
                        var timeDiffAbs = LastTime.getTime() - FirstTime.getTime();
                        var minutes = Math.floor(timeDiffAbs / (1000 * 60));
                        var seconds = Math.floor((timeDiffAbs % (1000 * 60)) / 1000);
                        if (minutes < 30 && seconds < 1800) {
                            var NotSufficientRevivingReason = isNullOrEmptyString($('#NotSufficientRevivingReason').combobox('getValue'));
                            if (NotSufficientRevivingReason == "") {
                                Alert += " 未充分复苏原因";
                            } else if (NotSufficientRevivingReason == "其他" && NotSufficientRevivingReasonSupplement == "")
                            { Alert += " 未充分复苏其他原因"; }
                        }
                    }
                }
                ////2024-02-07 zch
                //if (TwelveDaoLian == "") {
                //    Alert += " 12导联";
                //}
            }
        }

        if (FirstAidEffect == "") {
            Alert += " 急救效果";
        }
        if (MajorEmergencies == "") {
            Alert += " 重大突发事件";
        }
        if (DiseaseCooperation == "") {
            Alert += " 病家合作度";
        }
        if (DiseaseCooperation.indexOf("不合作") >= 0) {
            if (DiseaseNotCooperationSupplement == "") {
                Alert += " 病家合作度补充说明";
            }
        }
        if (FormedConsent == "") {
            Alert += " 告知签字";//20160111

        }
        //if (MedicalGuide == "") {
        ////    Alert += " 远程医学指导";//20180408
        //      Alert += " 是否为电话沟通";//20180408

        //}
        //20161121--修改如果是回家病历，病情预报为未报，病历备注不用必填项；病情分类为危重，告知签字为否，病历备注为必填项；
        if (IllState == "危重" && (IllStateReport == "未报" || FormedConsent == "False")) {
            if ((AlarmType != "回家" && IllStateReport == "未报") || FormedConsent == "False") {
                if (Remark == "") {
                    Alert += " 病历备注";
                }
            }
        }
    }

    //判断病历必填项是否都填写
    function GetPatientRecordValid() {
        var AlarmType = SplitArray(GetCheckBox("alarmEventType")); //事件类型
        if (AlarmType == "救治") {
            GetBaseInfoValid();
            if (DiseasesClassification == "") {
                Alert += " 病种分类";
            }
            if (DiseasesClassification != "") {
                //var DiseasesClassificationSupplement = $('#DiseasesClassificationSupplement').combobox('getValue');
                if (DiseasesClassification.indexOf("脑血管疾病") >= 0 || DiseasesClassification.indexOf("其他神经系统疾病") >= 0 || DiseasesClassification.indexOf("损伤性疾病") >= 0
                   || DiseasesClassification.indexOf("妇产科疾病") >= 0 || DiseasesClassification.indexOf("理化因素所致疾病") >= 0) {
                    if (DiseasesClassificationSupplement == "") {
                        Alert += " 小分类(病种分类)";
                    }
                }
            }
            if (ProvideMedicalHistoryPeople == "") {
                Alert += " 供史人";
            }
            AlarmReason = $('#tAlarmReason').textbox('getValue');//主诉
            HistoryOfPresentIllness = $('#tHistoryOfPresentIllness').textbox('getValue');//现病史
            if (AlarmReason == "") {
                Alert += " 主诉";
            }
            if (HistoryOfPresentIllness == "") {
                Alert += " 现病史";
            }
            SaveOneselfMeasures = SplitArray(GetCheckBox("SaveOneselfMeasures"));// 自救措施-20150918
            if (SaveOneselfMeasures == "有") {
                if ($('#SaveOneselfMeasuresSupplement').val() == "")
                    Alert += " 自救措施补充说明";
            }
            if (PastMedicalHistory == "") {
                Alert += " 既往病史";
            }
            if (PastMedicalHistory.indexOf("其他") >= 0) {
                if (PastMedicalHistorySupplement == "") {
                    Alert += " 既往病史的补充说明";
                }
            }
            GetTiJianValid();
            if (NervousSystem != "拒查" && NervousSystem != "未查") {
                if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && NervousSystemFace == "") {
                    Alert += " 面部";
                }
                if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && NervousSystemSpeech == "") {
                    Alert += " 言语";
                }
                if ((Consciousness != "昏迷" && Consciousness != "丧失")) {
                    if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && LeftUpperExtremity == "") {
                        Alert += " 左上肢";
                    }
                    if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && LeftLowerExtremity == "") {
                        Alert += " 左下肢";
                    }
                    if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && RightUpperLimb == "") {
                        Alert += " 右上肢";
                    }
                    if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && RightLowerLimb == "") {
                        Alert += " 右下肢";
                    }
                }
            }
            if (NervousSystem == "未查") {
                if ((DiseasesClassificationSupplement.indexOf("脑血管意外") >= 0 || DiseasesClassificationSupplement.indexOf("高血压脑病") >= 0 || DiseasesClassificationSupplement.indexOf("短暂性脑缺血发作") >= 0) && NervousSystemSupplement == "") {
                    Alert += " 神经系统的补充描述";//20151117神经系统的补充描述必填项
                }
            }
            GetGCSScore();
            GetTIScore();
            GetApgarScore();
            GetPrimaryDiagnosesValid();
            GetPRRescueCountValid()//救治记录--
            GetCPRValid();
            GetIllStateValid();
            if (MedicalGuide == "") {
                //Alert += " 远程医学指导";//20180408
                Alert += " 是否为电话沟通";//2023-02-10 plq 青浦移植

            }
        }
        if (AlarmType == "急救转院") {
            GetBaseInfoValid();
            if (DiseasesClassification == "") {
                Alert += " 病种分类";
            }
            if (DiseasesClassification != "") {
                //var DiseasesClassificationSupplement = $('#DiseasesClassificationSupplement').combobox('getValue');
                if (DiseasesClassification.indexOf("脑血管疾病") >= 0 || DiseasesClassification.indexOf("其他神经系统疾病") >= 0 || DiseasesClassification.indexOf("损伤性疾病") >= 0
                   || DiseasesClassification.indexOf("妇产科疾病") >= 0 || DiseasesClassification.indexOf("理化因素所致疾病") >= 0) {
                    if (DiseasesClassificationSupplement == "") {
                        Alert += " 小分类(病种分类)";
                    }
                }
            }
            if (ProvideMedicalHistoryPeople == "") {
                Alert += " 供史人";
            }
            //20161216--add主诉和现病史---begin-----
            AlarmReason = $('#tAlarmReason').textbox('getValue');//主诉
            HistoryOfPresentIllness = $('#tHistoryOfPresentIllness').textbox('getValue');//现病史
            if (AlarmReason == "") {
                Alert += " 主诉";
            }
            if (HistoryOfPresentIllness == "") {
                Alert += " 现病史";
            }
            //----------------end----------
            GetTiJianValid();
            var OtherNecessaryRecord = $('#tOtherNecessaryRecord').textbox('getValue');//其他必要记录
            if (OtherNecessaryRecord == "") {
                Alert += " 其他必要记录";
            }
            GetGCSScore();
            GetTIScore();
            GetApgarScore();
            GetPrimaryDiagnosesValid();
            GetPRRescueCountValid()//救治记录--
            GetCPRValid();
            GetIllStateValid();
        }
        if (AlarmType == "一般转院") {
            GetBaseInfoValid();
            if (DiseasesClassification == "") {
                Alert += " 病种分类";
            }
            if (DiseasesClassification != "") {
                //var DiseasesClassificationSupplement = $('#DiseasesClassificationSupplement').combobox('getValue');
                if (DiseasesClassification.indexOf("脑血管疾病") >= 0 || DiseasesClassification.indexOf("其他神经系统疾病") >= 0 || DiseasesClassification.indexOf("损伤性疾病") >= 0
                   || DiseasesClassification.indexOf("妇产科疾病") >= 0 || DiseasesClassification.indexOf("理化因素所致疾病") >= 0) {
                    if (DiseasesClassificationSupplement == "") {
                        Alert += " 小分类(病种分类)";
                    }
                }
            }
            if (ProvideMedicalHistoryPeople == "") {
                Alert += " 供史人";
            }
            if (DischargeDiagnosis == "") {
                Alert += " 转出院诊断";
            }
            if (HospitalMeasuresTreatment == "") {
                Alert += " 院内主要治疗措施";
            }
            GetTiJianValid();
            var OtherNecessaryRecord = $('#tOtherNecessaryRecord').textbox('getValue');//其他必要记录
            if (OtherNecessaryRecord == "") {
                Alert += " 其他必要记录";
            }
            GetGCSScore();
            GetTIScore();
            GetApgarScore();
            GetPrimaryDiagnosesValid();
            GetPRRescueCountValid()//救治记录--
            GetCPRValid();
            GetIllStateValid();
        }
        if (AlarmType == "回家") {
            GetBaseInfoValid();
            if (ProvideMedicalHistoryPeople == "") {
                Alert += " 供史人";
            }
            if (DischargeDiagnosis == "") {
                Alert += " 转出院诊断";
            }
            GetPRRescueCountValid()//救治记录--
            GetCPRValid();
            GetIllStateValid();
        }
        ////青浦用户提出“取暖箱”病历，患者姓名不用必填项--20160922
        //if (AlarmType == "取暖箱") {
        //    if (Name == "") {
        //        Alert += " 患者姓名";
        //    }
        //}
        if (AlarmType == "空车") {
            var value = SplitArray(GetCheckBox("IsSeePeople"));
            if (value == "见人") {
                if (Name == "") {
                    Alert += " 患者姓名";
                }
                GetTiJianValid();
                AlarmReason = $('#tAlarmReason').textbox('getValue');//主诉
                HistoryOfPresentIllness = $('#tHistoryOfPresentIllness').textbox('getValue');//现病史
                if (AlarmReason == "") {
                    Alert += " 主诉";
                }
                if (HistoryOfPresentIllness == "") {
                    Alert += " 现病史";
                }
                if (EmptyReason == "") {
                    Alert += " 空车原因";
                }
                if (EmptyReason == "其他" && EmptyReasonSupplement == "") {
                    Alert += " 空车原因补充说明";
                }
            } else {
                if (value == "") {
                    Alert += " 是否见到病人";
                }
                if (EmptyReason == "") {
                    Alert += " 空车原因";
                }
                if (EmptyReason == "其他" && EmptyReasonSupplement == "") {
                    Alert += " 空车原因补充说明";
                }
            }
        }
        //add2022-03-01 plq 应松江现场(工程@李彬)要求，所有类型病历，以下字段均需必填
        GetBaseInfoValid
        GetCommonInfoValid();

        if (Alert.length > 0)
            Alert += " 没有填写！";
    }

    function bindGridPRRescueList() {

        $('#gridPRRescueList').datagrid({
            title: '救治记录列表',
            type: "POST",
            width: '97%',
            //height: 50,
            //width: 'auto',
            height: 'auto',
            nowrap: false,//自动换行
            //autoRowHeight: true,
            striped: true,
            collapsible: true,
            singleSelect: true,
            url: '@Url.Content("~/PRRescue/GetPatientRecordRescue")',
            //idField: 'YuYueShiJian',
            loadMsg: '数据加载中请稍后……',
            pagination: true,//启用分页，默认每页10行
            rownumbers: true,//显示页码，默认 提供 10 - 50 的页容量选择下拉框
            pageSize: 5,//设置 页容量5为
            pageList: [5, 10, 20],//设置 页容量下拉框
            queryParams: {
                TaskCode: TaskCode,
                PatientOrder: PatientOrder
            },
            frozenColumns: [[
            { title: '时间段', field: 'PeriodOfTime', width: '5%', sortable: false },
            { title: '处理序号', field: 'DisposeOrder', width: '5%', sortable: false }
            ]],
            columns: [[
            { title: '救治措施', field: 'Measures', width: '32%' },
            { title: '耗材', field: 'Sanitations', width: '23%', sortable: false },
            { title: '药品', field: 'Drugs', width: '15%' },
            { title: '病情变化', field: 'haha', width: '15%', sortable: false, formatter: formatDiseaseChanges },
            { title: '备注', field: 'Remark', width: '12%', sortable: false },
            { title: '损耗药品', field: 'LossDrugs', width: '10%', sortable: false },
            { title: '损耗耗材', field: 'LossSanitations', width: '10%', sortable: false },
            { title: 'TaskCode', field: 'TaskCode', width: '0%', sortable: false, hidden: true },
            { title: 'PatientOrder', field: 'PatientOrder', width: '0%', sortable: false, hidden: true },
            { title: 'DiseaseIFChanges', field: 'DiseaseIFChanges', width: '0%', sortable: false, hidden: true },
            { title: 'DiseaseChangesSupplement', field: 'DiseaseChangesSupplement', width: '0%', sortable: false, hidden: true },
            { title: '救治记录编码', field: 'RescueRecordCode', width: '0%', sortable: false, hidden: true }
            ]],
            onClickRow: function (index, data) {
                var selected = $('#gridPRRescueList').datagrid('getSelected');
                //if (selected) {
                //    if (selected.WanChengBiaoZhun != "未接单状态") {
                //        $('#btnedit').linkbutton("disable");
                //    } else {
                //        $('#btnedit').linkbutton("enable");
                //    }
                //}
            },
            toolbar: [{
                id: 'btnadd',
                text: '新增',
                iconCls: 'icon-add',
                handler: function () {
                    //$('#AddPatientRecordRescue').dialog('open');
                    var XFFSMouldText = isNullOrEmptyString($('#RescueXFFSMould').combobox('getText'));//心肺复苏模板选择
                    var XFFSMould = isNullOrEmptyString($('#RescueXFFSMould').combobox('getValue'));//心肺复苏模板选择
                    var TitleXFFS = "";
                    if (XFFSMouldText != "") {
                        TitleXFFS = "【" + XFFSMouldText + "】"
                    }
                    var dialog = $('#AddPatientRecordRescue').dialog({
                        title: '新增救治记录' + TitleXFFS
                    });
                    dialog.dialog('open');
                    //RescueState = "new";
                    bindPRRescueGrid(XFFSMould);
                    var allRowsData = $("#gridPRRescueList").datagrid("getRows");//判断是否已经填写救治记录
                    if (allRowsData.length > 0) {
                        ClearPRRescueData();//清空内容
                        SetRescueRadioOfList("rblDiseaseChanges", "无"); //病历变化是否
                    }
                    AddStyle();//新增样式
                }
            }, {
                id: 'btnedit',
                text: '修改',
                iconCls: 'icon-edit',
                handler: function () {
                    var selected = $('#gridPRRescueList').datagrid('getSelected');
                    if (selected) {
                        $.ajax({
                            type: 'POST',
                            url: '@Url.Content("~/PR/PRRescue/GetPRRescue")',
                            data:
                                {
                                    TaskCode: selected.TaskCode,
                                    PatientOrder: selected.PatientOrder,
                                    RescueRecordCode: selected.RescueRecordCode,
                                    DisposeOrder: selected.DisposeOrder
                                },
                            dataType: "json",
                            success: function (editmodel) {
                                if (editmodel.IsSuccess) {
                                    var dialog = $('#AddPatientRecordRescue').dialog({
                                        title: '修改救治记录'
                                    });
                                    dialog.dialog('open');
                                    bindPRRescueGrid();
                                    ClearPRRescueData();
                                    BindEditPRRescueData(editmodel.Model, "edit");
                                }
                            }
                        })
                    } else {
                        $.messager.alert('提示', '请选择要修改的数据行', 'info', function () {
                        });
                    }
                }
            }, {
                id: 'btnlook',
                text: '查看',
                iconCls: 'icon-custom-View',
                handler: function () {
                    var selected = $('#gridPRRescueList').datagrid('getSelected');
                    if (selected) {
                        $.ajax({
                            type: 'POST',
                            url: '@Url.Content("~/PR/PRRescue/GetPRRescue")',
                            data:
                                {
                                    TaskCode: selected.TaskCode,
                                    PatientOrder: selected.PatientOrder,
                                    RescueRecordCode: selected.RescueRecordCode,
                                    DisposeOrder: selected.DisposeOrder
                                },
                            dataType: "json",
                            success: function (editmodel) {
                                if (editmodel.IsSuccess) {
                                    var dialog = $('#AddPatientRecordRescue').dialog({
                                        title: '查看救治记录'
                                    });
                                    dialog.dialog('open');
                                    bindPRRescueGrid();
                                    ClearPRRescueData();

                                    BindEditPRRescueData(editmodel.Model, "look");
                                }
                            }
                        })
                    } else {
                        $.messager.alert('提示', '请选择要查看的数据行', 'info', function () {
                        });
                    }

                }
            }, {
                id: 'btndelete',
                text: '删除',
                iconCls: 'icon-remove',
                handler: function () {
                    var selected = $('#gridPRRescueList').datagrid('getSelected');
                    if (selected) {
                        DeletePRRescue(selected.TaskCode, selected.PatientOrder, selected.RescueRecordCode, selected.DisposeOrder, selected.PeriodOfTime);
                    } else {
                        $.messager.alert('提示', '请选择要删除的数据行', 'info', function () {
                        });
                    }
                }
            }, {
                id: 'btneditBQBH',
                text: '修改病情变化', //add2022-08-17 plq 新增病情变化修改--参考移植自闵行
                iconCls: 'icon-edit',
                handler: function () {
                    var selected = $('#gridPRRescueList').datagrid('getSelected');
                    if (selected) {
                        $.ajax({
                            type: 'POST',
                            url: '@Url.Content("~/PR/PRRescue/GetPRRescue")',
                            data:
                                {
                                    TaskCode: selected.TaskCode,
                                    PatientOrder: selected.PatientOrder,
                                    RescueRecordCode: selected.RescueRecordCode,
                                    DisposeOrder: selected.DisposeOrder
                                },
                            dataType: "json",
                            success: function (editmodel) {
                                if (editmodel.IsSuccess) {
                                    var dialog = $('#AddPatientRecordBQBH').dialog({
                                        title: '修改病情变化'
                                    });
                                    dialog.dialog('open');
                                    BindEditBQBH(editmodel.Model);
                                }
                            }
                        })
                    } else {
                        $.messager.alert('提示', '请选择要修改的数据行', 'info', function () {
                        });
                    }
                }
            }
            ],
            onLoadSuccess: function () {

                //判断有无医保收费，如果有就不能修改救治记录. 2021-07-15 zch //2021-10-19 plq 医保上线移植
                $.ajax({
                    type: 'POST',
                    url: '@Url.Content("~/PR/Medical/IFYBPatientCharge")',
                    data: {
                        TaskCode: TaskCode,
                        PatientOrder: PatientOrder,
                    },
                    dataType: "json",
                    success: function (msg) {
                        var MedicalStateCode = $('#HidMedicalStateCode').val();//20170110--增加病历状态隐藏
                        if ((msg == true && '@ViewData["SuperRole"]' == "") || (SubmitLogo == 'True' && MedicalStateCode != 2 && '@ViewData["SuperRole"]' == "") || '@ViewData["state"]' == "look") {
                            $('#btnadd').linkbutton("disable");
                            $('#btnedit').linkbutton("disable");
                            $('#btndelete').linkbutton("disable");
                        }
                        else {
                            $('#btnadd').linkbutton("enable");
                            $('#btnedit').linkbutton("enable");
                            $('#btndelete').linkbutton("enable");
                        }

                    }
                });

                //var SubmitLogo = $('#HidSubmitLogo').val();//提交标志
                @*//|| (SubmitLogo == 'False' && '@ViewData["AgentName"]' != AgentName)//20160513*@
                @*var MedicalStateCode = $('#HidMedicalStateCode').val();//20161202--增加病历状态隐藏 //2021-10-19  plq 医保上线改造移植--注释此段代码
                    if ((SubmitLogo == 'True' && MedicalStateCode != 2 && '@ViewData["SuperRole"]' == "") || '@ViewData["state"]' == "look") {
                        $('#btnadd').linkbutton("disable");
                        $('#btnedit').linkbutton("disable");
                        $('#btndelete').linkbutton("disable");
                    }
                    else {
                        $('#btnadd').linkbutton("enable");
                        $('#btnedit').linkbutton("enable");
                        $('#btndelete').linkbutton("enable");
                    }*@
            }
        });
        var p = $('#gridPRRescueList').datagrid('getPager');
        $(p).pagination({
            onBeforeRefresh: function () {
            }
        });
    }
    //格式化救治记录--病情变化
    function formatDiseaseChanges(value, row) {
        if (row.DiseaseIFChanges == "有") {
            return row.DiseaseIFChanges + "(" + row.DiseaseChangesSupplement + ")";
        }
        else
            return row.DiseaseIFChanges;
    }
    //删除救治记录主表和子表
    function DeletePRRescue(TaskCode, PatientOrder, RescueRecordCode, DisposeOrder, PeriodOfTime) {
        $.messager.confirm('删除救治记录', '是否确定要删除时间段为："' + PeriodOfTime + '"的救治记录？', function (r) {
            if (r) {
                $.ajax({
                    url: '@Url.Content("~/PRRescue/DeletePRRescue")',
                    type: "POST",
                    data: {
                        TaskCode: TaskCode,
                        PatientOrder: PatientOrder,
                        RescueRecordCode: RescueRecordCode,
                        DisposeOrder: DisposeOrder
                    },
                    success: function (msg) {
                        if (msg == 'True') {
                            msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>删除成功！</b></span>', 'info');
                            $("#gridPRRescueList").datagrid("reload");
                        } else {
                            msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储删除救治记录错误，请联系技术人员！</b></span>', 'error');

                        }
                    },
                    error: function () {
                        msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;<b>存储删除救治记录错误，请联系技术人员！</b></span>', 'error');

                    }
                });
            }
        });
    }

    //删除救治记录主表和子表
    function DeletePRRescueForPatientError(TaskCode, PatientOrder) {
        $.ajax({
            url: '@Url.Content("~/PR/PRRescue/DeletePRRescue")',
            type: "POST",
            data: {
                TaskCode: TaskCode,
                PatientOrder: PatientOrder
            },
            success: function (msg) {
                //if (msg == 'True') {
                //    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>删除成功！</b></span>', 'info');
                //    $("#gridPatientList").datagrid("reload");
                //    //bindGrid();//执行查询按钮，刷新数据
                //} else {
                //    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储错误，请联系技术人员！</b></span>', 'error');

                //}
            },
            //error: function () {
            //    msgShow('系统提示', '</br><span style="color:#15428B;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>存储错误，请联系技术人员！</b></span>', 'error');

            //}
        });
    }

    //根据事件类型变化，隐藏和显示不同信息
    function HidByAlarmEventType() {
        var selectName = GetCheckBox("alarmEventType");
        if (selectName == "救治") {
            $('#EmptyReasonName').css("display", "none");//隐藏空车原因lable
            $('#EmptyReason').css("display", "none");//隐藏空车原因选择
            $('#IsSeePeopleName').css("display", "none");//隐藏是否见人
            $('#IsSeePeople').css("display", "none");//隐藏空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            unCheckBoxAll("EmptyReason", "");//清除空车原因勾选内容
            unCheckBoxAll("IsSeePeople", "");//清除是否见人勾选内容
            $('#EmptyReasonSupplement').val("");//清除空车原因的补充说明lable

            ShowCaseTemplate();//显示--病种分类
            $('#trJ0').css("display", "");//显示行：病种分类
            $('#trJ1').css("display", "");//显示行：主诉
            $('#trJ2').css("display", "");//显示行：现病史
            $('#trJ3').css("display", "");//显示行：自救措施
            $('#trJAnamnesisllnessHistory').css("display", "");//隐藏行：既往病史
            $('#trJAnamnesisllnessHistoryBuChong').css("display", "");//隐藏行：既往病史的补充说明

            HidTransferIllnessRecord();//隐藏--转(出)院病情记录
            ShowTiJian();//显示--体检
            ShowTiJianPart();//显示--体检部分
            HidQiTaBiYaoJiLu();//隐藏--其他必要记录
            ShowPF();//显示--3个评分
            ShowEquipmentInspection();//显示--必要器械检查
            ShowJiuZhiJiLu();//显示--救治记录
            $("#gridPRRescueList").datagrid("reload");//20160826刷新救治记录列表
            Showxffs();//显示--心肺复苏
            ShowCPRIllState();//显示--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            //ShowCPRPart();//显示--心肺复苏的科教部来填写的部分
            ShowShenHe();//显示--审核
            //HidShenHe();//隐藏--审核

            ColorPastMedicalHistorySupplement();
            SetRed();//设置必填项的字为红色
            $('#tdProvideMedicalHistoryPeople').css("color", "red");
            HidInstrumentalExamination();
            $('#spanFormedConsent').css("display", "");//显示--告知签字20161212
            $('#IFFormedConsent').css("display", "");//显示--告知签字20161212
        }
        //如果“病历版本”选择“急救转院”
        if (selectName == "急救转院") {
            $('#EmptyReasonName').css("display", "none");//隐藏空车原因lable
            $('#EmptyReason').css("display", "none");//隐藏空车原因选择
            $('#IsSeePeopleName').css("display", "none");//隐藏是否见人
            $('#IsSeePeople').css("display", "none");//隐藏空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            unCheckBoxAll("EmptyReason", "");//清除空车原因勾选内容
            unCheckBoxAll("IsSeePeople", "");//清除是否见人勾选内容
            $('#EmptyReasonSupplement').val("");//清除空车原因的补充说明lable

            //HidCaseTemplate();//隐藏--病种分类
            ShowCaseTemplate();//显示--病种分类
            //$('#trJ0').css("display", "");//显示行：病种分类
            $('#trJ1').css("display", "");//显示行：主诉--20161216
            $('#trJ2').css("display", "");//显示行：现病史--20161216
            //$('#trJ1').css("display", "none");//隐藏行：主诉--20161216
            //$('#trJ2').css("display", "none");//隐藏行：现病史--20161216
            $('#trJ3').css("display", "none");//隐藏行：自救措施
            $('#trJAnamnesisllnessHistory').css("display", "none");//隐藏行：既往病史
            $('#trJAnamnesisllnessHistoryBuChong').css("display", "none");//隐藏行：既往病史的补充说明

            ShowTransferIllnessRecord();//显示--转(出)院病情记录
            $('#trPatientsSymptoms').css("display", "none");//隐藏行：目前患者症状
            ShowTiJian();//显示--体检
            HidTiJianPart();//隐藏--体检部分内容
            ShowQiTaBiYaoJiLu();//显示--其他必要记录
            ShowPF();//显示--3个评分
            ShowEquipmentInspection();//显示--必要器械检查
            ShowJiuZhiJiLu();//显示--救治记录
            $("#gridPRRescueList").datagrid("reload");//20160826刷新救治记录列表
            Showxffs();//显示--心肺复苏
            ShowCPRIllState();//显示--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            //HidShenHe();//隐藏--审核
            ShowShenHe();//显示--审核20161212

            SetRed();//设置必填项的字为红色
            $('#tdProvideMedicalHistoryPeople').css("color", "red");
            $('#tdDischargeDiagnosis').css("color", "Black");//转出院诊断--变黑（不为必填项）
            $('#tdMainTreatmentMeasures').css("color", "Black");//院内主要治疗措施--变黑（不为必填项）
            HidInstrumentalExamination();
            $('#spanFormedConsent').css("display", "");//显示--告知签字20161212
            $('#IFFormedConsent').css("display", "");//显示--告知签字20161212
        }
        //如果“病历版本”选择“一般转院”(转院)
        if (selectName == "一般转院") {
            $('#EmptyReasonName').css("display", "none");//隐藏空车原因lable
            $('#EmptyReason').css("display", "none");//隐藏空车原因选择
            $('#IsSeePeopleName').css("display", "none");//隐藏是否见人
            $('#IsSeePeople').css("display", "none");//隐藏空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            unCheckBoxAll("EmptyReason", "");//清除空车原因勾选内容
            unCheckBoxAll("IsSeePeople", "");//清除是否见人勾选内容
            $('#EmptyReasonSupplement').val("");//清除空车原因的补充说明lable

            //HidCaseTemplate();//隐藏--病种分类
            ShowCaseTemplate();//显示--病种分类
            //$('#trJ0').css("display", "");//显示行：病种分类
            $('#trJ1').css("display", "none");//隐藏行：主诉
            $('#trJ2').css("display", "none");//隐藏行：现病史
            $('#trJ3').css("display", "none");//隐藏行：自救措施
            $('#trJAnamnesisllnessHistory').css("display", "none");//隐藏行：既往病史
            $('#trJAnamnesisllnessHistoryBuChong').css("display", "none");//隐藏行：既往病史的补充说明

            ShowTransferIllnessRecord();//显示--转(出)院病情记录
            $('#trPatientsSymptoms').css("display", "none");//隐藏行：目前患者症状
            ShowTiJian();//显示--体检
            HidTiJianPart();//隐藏--体检部分内容
            ShowQiTaBiYaoJiLu();//显示--其他必要记录
            ShowPF();//显示--3个评分
            ShowEquipmentInspection();//显示--必要器械检查
            ShowJiuZhiJiLu();//显示--救治记录
            $("#gridPRRescueList").datagrid("reload");//20160826刷新救治记录列表
            Showxffs();//显示--心肺复苏
            ShowCPRIllState();//显示--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            //HidShenHe();//隐藏--审核
            ShowShenHe();//显示--审核20161212

            SetRed();//设置必填项的字为红色
            $('#tdProvideMedicalHistoryPeople').css("color", "red");
            $('#tdDischargeDiagnosis').css("color", "red");//转出院诊断--变红（为必填项）
            $('#tdMainTreatmentMeasures').css("color", "red");//院内主要治疗措施--变红（为必填项）
            HidInstrumentalExamination();
            $('#spanFormedConsent').css("display", "");//显示--告知签字20161212
            $('#IFFormedConsent').css("display", "");//显示--告知签字20161212
        }
        //如果“病历版本”选择“回家”
        if (selectName == "回家") {
            $('#EmptyReasonName').css("display", "none");//隐藏空车原因lable
            $('#EmptyReason').css("display", "none");//隐藏空车原因选择
            $('#IsSeePeopleName').css("display", "none");//隐藏是否见人
            $('#IsSeePeople').css("display", "none");//隐藏空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            unCheckBoxAll("EmptyReason", "");//清除空车原因勾选内容
            unCheckBoxAll("IsSeePeople", "");//清除是否见人勾选内容
            $('#EmptyReasonSupplement').val("");//清除空车原因的补充说明lable

            HidCaseTemplate();//隐藏--病种分类
            ShowTransferIllnessRecord();//显示--转(出)院病情记录
            $('#trMainTreatmentMeasures').css("display", "none");//隐藏行：医院主要治疗措施
            $('#trPatientsSymptoms').css("display", "none");//隐藏行：目前患者症状

            HidTiJian();//隐藏--体检
            HidPF();//隐藏--3个评分
            HidEquipmentInspection();//隐藏--必要器械检查
            ShowJiuZhiJiLu();//显示--救治记录
            $("#gridPRRescueList").datagrid("reload");//20160826刷新救治记录列表
            Showxffs();//显示--心肺复苏
            ShowCPRIllState();//显示--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            //HidShenHe();//隐藏--审核
            ShowShenHe();//显示--审核20161212

            SetRed();//设置必填项的字为红色
            $('#tdProvideMedicalHistoryPeople').css("color", "red");
            $('#spanFormedConsent').css("display", "");//显示--告知签字20161212
            $('#IFFormedConsent').css("display", "");//显示--告知签字20161212
        }

        //如果“病历版本”选择“取暖箱”--20161212-修改为“其他”
        if (selectName == "其他") {
            $('#EmptyReasonName').css("display", "none");//隐藏空车原因lable
            $('#EmptyReason').css("display", "none");//隐藏空车原因选择
            $('#IsSeePeopleName').css("display", "none");//隐藏是否见人
            $('#IsSeePeople').css("display", "none");//隐藏空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            unCheckBoxAll("EmptyReason", "");//清除空车原因勾选内容
            unCheckBoxAll("IsSeePeople", "");//清除是否见人勾选内容
            $('#EmptyReasonSupplement').val("");//清除空车原因的补充说明lable

            HidCaseTemplate();//隐藏--病种分类
            HidTransferIllnessRecord();//隐藏--转(出)院病情记录
            HidTiJian();//隐藏--体检
            HidPF();//隐藏--3个评分
            HidEquipmentInspection();//隐藏--必要器械检查
            HidJiuZhiJiLu();//隐藏--救治记录
            //Hidxffs();//隐藏--心肺复苏--20161212注释
            HidCPRIllState();//add20161212
            $('#spanFormedConsent').css("display", "none");//隐藏--告知签字20161212
            $('#IFFormedConsent').css("display", "none");//隐藏--告知签字20161212

            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            HidShenHe();//隐藏--审核

            SetBlack();//设置不必填项的字为黑色
            //$('#tdName').css("color", "red");//患者姓名--青浦用户提出“取暖箱”病历，患者姓名不用必填项--20160922
            $('#tdProvideMedicalHistoryPeople').css("color", "Black");
            //unCheckBoxAll("CPRSelect", "");//清除所有勾选内容--心肺复苏成功申报20151118
        }
        //如果“病历版本”选择“空车”
        if (selectName == "空车") {
            $('#EmptyReasonName').css("display", "");//显示空车原因lable
            $('#EmptyReason').css("display", "");//显示空车原因选择
            $('#IsSeePeopleName').css("display", "");//显示是否见人
            $('#IsSeePeople').css("display", "");//显示空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            HidCaseTemplate();//隐藏--病种分类
            HidTransferIllnessRecord();//隐藏--转(出)院病情记录
            HidTiJian();//隐藏--体检
            HidPF();//隐藏--3个评分
            HidEquipmentInspection();//隐藏--必要器械检查
            HidJiuZhiJiLu();//隐藏--救治记录
            Hidxffs();//隐藏--心肺复苏
            //HidCPRIllState();//隐藏--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            HidShenHe();//隐藏--审核

            SetBlack();//设置不必填项的字为黑色
            $('#tdProvideMedicalHistoryPeople').css("color", "Black");
            //unCheckBoxAll("CPRSelect", "");//清除所有勾选内容--心肺复苏成功申报20151118
        }
    }

    //设置必填项的字为红色
    function SetRed() {
        $('#tdName').css("color", "red");
        $('#tdSex').css("color", "red");
        $('#tdAge').css("color", "red");
        $('#tdLocalAddress').css("color", "red");
        $('#tdDrivingTime').css("color", "red");
        $('#tdArriveSceneTime').css("color", "red");
        $('#tdSendAddress').css("color", "red");
        $('#tdLeaveSceneTime').css("color", "red");
        $('#tdArriveDestinationTime').css("color", "red");
        //$('#lblDrivingTimeSupplement').css("color", "red");//出车时间补充--20160120
        //$('#lblArriveSceneTimeSupplement').css("color", "red");//到达现场补充--20160120
        //$('#lblLeaveSceneTimeSupplement').css("color", "red");//离开现场补充--20160120
        //$('#lblArriveDestinationTimeSupplement').css("color", "red");//到达时间补充--20160120
        $('#tdStation').css("color", "red");
    }
    function SetKongCheRed() {
        $('#tdName').css("color", "red");
    }
    //设置不必填项的字为黑色
    function SetBlack() {
        $('#tdName').css("color", "Black");
        $('#tdSex').css("color", "Black");
        $('#tdAge').css("color", "Black");
        $('#tdLocalAddress').css("color", "Black");
        $('#tdDrivingTime').css("color", "Black");
        $('#tdArriveSceneTime').css("color", "Black");
        $('#tdSendAddress').css("color", "Black");
        $('#tdLeaveSceneTime').css("color", "Black");
        $('#tdArriveDestinationTime').css("color", "Black");
        //$('#lblDrivingTimeSupplement').css("color", "Black");//出车时间补充--20160120
        //$('#lblArriveSceneTimeSupplement').css("color", "Black");//到达现场补充--20160120
        //$('#lblLeaveSceneTimeSupplement').css("color", "Black");//离开现场补充--20160120
        //$('#lblArriveDestinationTimeSupplement').css("color", "Black");//到达时间补充--20160120
        $('#tdStation').css("color", "Black");
    }

    //根据病种分类选择来生成病历分类子项选择
    function GetDiseasesClassification() {
        var Name = SplitArray(GetCheckBox("DiseasesClassification"));//病种分类选择
        var DiseasesClassification = $('#HidDiseasesClassification').val();//20161121--取数据库已经填写的病种分类
        DisabledDiseasesClassification();//根据性别、年龄、等来判断禁用“病种分类”内容
        //$('input[name="DiseasesClassification"]').each(function () {
        //    if (Name != "") {
        //        if (Name.indexOf(",") >= 0 && Name.indexOf($(this).val()) < 0) {
        //            $(this).prop("disabled", "disabled");
        //        }
        //        else {
        //            $(this).prop("disabled", "");
        //        }

        //    }
        //    else {
        //        $(this).prop("disabled", "");
        //    }
        //});

        if (Name.indexOf("妇产科") >= 0 || Name.indexOf("脑血管疾病") >= 0 || Name.indexOf("损伤性疾病") >= 0 || Name.indexOf("理化因素所致疾病") >= 0 || Name.indexOf("其他神经系统") >= 0) {
            $('#spanDiseasesClassificationSupplement').css("display", "");//
            $('#lblDiseasesClassificationSupplement').css("display", "");//

            //只选择“妇产科疾病”
            if (Name.indexOf("妇产科") >= 0 && Name.indexOf("脑血管疾病") < 0 && Name.indexOf("损伤性疾病") < 0 && Name.indexOf("理化因素所致疾病") < 0 && Name.indexOf("其他神经系统") < 0) {
                $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
                //EUIcombobox("#DiseasesClassificationSupplement", {
                $('#DiseasesClassificationSupplement').combobox({
                    url: "@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")" + "ObGynDepartmentDisease",
                    valueField: 'Name',
                    textField: 'Name',
                    //method: 'post',
                    editable: false,
                    panelHeight: 'auto',
                    multiple: false,
                    //value: '--请选择--',
                    //OneOption: [{
                    //    ID: "",
                    //    Name: "--请选择--"
                    //}],
                    prompt: '--请选择--',
                    //data: [{
                    //    ID: '',
                    //    Name: '--请选择--',
                    //    //selected: true //默认选中项
                    //}, {
                    //    ID: '产科',
                    //    Name: '产科',
                    //}, {
                    //    ID: '接生',
                    //    Name: '接生'
                    //}],
                    onLoadSuccess: function () {
                        //20161121--修改为如果数据库保存的病种分类与选择的病种分类相同就赋值
                        if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassification == Name)) {
                            $('#DiseasesClassificationSupplement').combobox('setValue', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement);//病种分类补充
                        }
                        //if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassificationSupplement.indexOf("脑血管意外") < 0 && DiseasesClassificationSupplement.indexOf("伤") < 0 && DiseasesClassificationSupplement.indexOf("其他") < 0)) {
                        //    $('#DiseasesClassificationSupplement').combobox('setValue', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement);//病种分类补充
                        //}
                    },
                    onChange: function (parm) {
                        SelectDiseasesClassificationSupplement();

                    },
                });
            }

                //只选择“脑血管疾病”
            else if (Name.indexOf("妇产科") < 0 && Name.indexOf("脑血管疾病") >= 0 && Name.indexOf("损伤性疾病") < 0 && Name.indexOf("理化因素所致疾病") < 0 && Name.indexOf("其他神经系统") < 0) {
                $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
                //EUIcombobox("#DiseasesClassificationSupplement", {
                $('#DiseasesClassificationSupplement').combobox({
                    url: "@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")" + "CerebrovascularDisease",
                    valueField: 'Name',
                    textField: 'Name',
                    //method: 'post',
                    editable: false,
                    panelHeight: 'auto',
                    multiple: false,
                    //value: '--请选择--',
                    //OneOption: [{
                    //    ID: "",
                    //    Name: "--请选择--"
                    //}],
                    prompt: '--请选择--',
                    //data: [{
                    //    ID: '',
                    //    Name: '--请选择--',
                    //    //selected: true //默认选中项
                    //}, {
                    //    ID: '脑血管意外',
                    //    Name: '脑血管意外'
                    //}],
                    onLoadSuccess: function () {
                        //20161121--修改为如果数据库保存的病种分类与选择的病种分类相同就赋值
                        if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassification == Name)) {
                            $('#DiseasesClassificationSupplement').combobox('setValue', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement);//病种分类补充
                        }
                        //if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassificationSupplement.indexOf("产科") < 0 && DiseasesClassificationSupplement.indexOf("接生") < 0 && DiseasesClassificationSupplement.indexOf("伤") < 0 && DiseasesClassificationSupplement.indexOf("其他损失性疾病") < 0)) {
                        //    $('#DiseasesClassificationSupplement').combobox('setValue', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement);//病种分类补充
                        //}
                    },
                    onChange: function (parm) {
                        SelectDiseasesClassificationSupplement();
                    },
                });
            }
                //只选择“损伤性疾病”
            else if (Name.indexOf("妇产科") < 0 && Name.indexOf("脑血管疾病") < 0 && Name.indexOf("损伤性疾病") >= 0 && Name.indexOf("理化因素所致疾病") < 0 && Name.indexOf("其他神经系统") < 0) {
                $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
                $('#DiseasesClassificationSupplement').combobox({
                    url: "@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")" + "InjuryDisease",
                    valueField: 'Name',
                    textField: 'Name',
                    //method: 'post',
                    editable: false,
                    panelHeight: 'auto',
                    multiple: true,
                    //value: '--请选择--',
                    prompt: '--请选择--',
                    onLoadSuccess: function () {
                        //20161121--修改为如果数据库保存的病种分类与选择的病种分类相同就赋值
                        if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassification == Name)) {
                            $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        }
                        //if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassificationSupplement.indexOf("产科") < 0 && DiseasesClassificationSupplement.indexOf("接生") < 0 && DiseasesClassificationSupplement.indexOf("妇科") < 0 )
                        //    && (DiseasesClassificationSupplement.indexOf("冻伤") < 0 && DiseasesClassificationSupplement.indexOf("抓咬伤") < 0 && DiseasesClassificationSupplement.indexOf("烧/烫/灼伤") < 0)
                        //    && (DiseasesClassificationSupplement.indexOf("中毒") < 0 && DiseasesClassificationSupplement.indexOf("电击") < 0 && DiseasesClassificationSupplement.indexOf("淹溺") < 0
                        //     && DiseasesClassificationSupplement.indexOf("自缢") < 0 && DiseasesClassificationSupplement.indexOf("中暑") < 0 && DiseasesClassificationSupplement.indexOf("其他理化因素所致疾病") < 0)
                        //    && (DiseasesClassificationSupplement.indexOf("脑") < 0)) {
                        //    $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        //}
                    },
                    onChange: function (parm) {
                        SelectDiseasesClassificationSupplement();
                    },
                });
            }
                //只选择“理化因素所致疾病”
            else if (Name.indexOf("妇产科") < 0 && Name.indexOf("脑血管疾病") < 0 && Name.indexOf("损伤性疾病") < 0 && Name.indexOf("理化因素所致疾病") >= 0 && Name.indexOf("其他神经系统") < 0) {

                $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
                $('#DiseasesClassificationSupplement').combobox({
                    url: "@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")" + "LiHuaYinSuJB",
                    valueField: 'Name',
                    textField: 'Name',
                    //method: 'post',
                    editable: false,
                    panelHeight: 'auto',
                    multiple: true,
                    //value: '--请选择--',
                    prompt: '--请选择--',
                    onLoadSuccess: function () {
                        //20161121--修改为如果数据库保存的病种分类与选择的病种分类相同就赋值
                        if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassification == Name)) {
                            $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        }
                        //if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassificationSupplement.indexOf("产科") < 0 && DiseasesClassificationSupplement.indexOf("接生") < 0 && DiseasesClassificationSupplement.indexOf("妇科") < 0 )
                        //    && (DiseasesClassificationSupplement.indexOf("伤") < 0 || DiseasesClassificationSupplement.indexOf("冻伤")>=0 || DiseasesClassificationSupplement.indexOf("抓咬伤")>=0 || DiseasesClassificationSupplement.indexOf("烧/烫/灼伤")>=0)
                        //    && (DiseasesClassificationSupplement.indexOf("脑") < 0)) {
                        //    $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        //}
                    },
                    onChange: function (parm) {

                    },
                });
            }
                //只选择“其他神经系统”
            else if (Name.indexOf("妇产科") < 0 && Name.indexOf("脑血管疾病") < 0 && Name.indexOf("损伤性疾病") < 0 && Name.indexOf("理化因素所致疾病") < 0 && Name.indexOf("其他神经系统") >= 0) {
                $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
                $('#DiseasesClassificationSupplement').combobox({
                    url: "@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")" + "OtherNervousSystem",
                    valueField: 'Name',
                    textField: 'Name',
                    //method: 'post',
                    editable: false,
                    panelHeight: 'auto',
                    multiple: true,
                    //value: '--请选择--',
                    prompt: '--请选择--',
                    onLoadSuccess: function () {
                        //20161121--修改为如果数据库保存的病种分类与选择的病种分类相同就赋值
                        if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassification == Name)) {
                            $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        }
                        //if (isNullOrEmptyString(DiseasesClassificationSupplement) != "" && (DiseasesClassificationSupplement.indexOf("产科") < 0 && DiseasesClassificationSupplement.indexOf("接生") < 0 && DiseasesClassificationSupplement.indexOf("妇科") < 0 && DiseasesClassificationSupplement.indexOf("脑血管意外") < 0 && DiseasesClassificationSupplement.indexOf("伤") < 0)) {
                        //    $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        //}
                    },
                    onChange: function (parm) {
                        SelectDiseasesClassificationSupplement();
                    },
                });
            }
                //20160107选择“妇产科疾病”或者“脑血管疾病”或者“损伤性疾病”或者“理化因素所致疾病”或者“其他神经系统”
            else {
                var TypeCode = "";
                if (Name.indexOf("妇产科") >= 0) {
                    TypeCode += "'ObGynDepartmentDisease',";
                }
                if (Name.indexOf("脑血管疾病") >= 0) {
                    TypeCode += "'CerebrovascularDisease',";
                }
                if (Name.indexOf("损伤性疾病") >= 0) {
                    TypeCode += "'InjuryDisease',";
                }
                if (Name.indexOf("理化因素所致疾病") >= 0) {
                    TypeCode += "'LiHuaYinSuJB',";
                }
                if (Name.indexOf("其他神经系统") >= 0) {
                    TypeCode += "'OtherNervousSystem',";
                }
                TypeCode = TypeCode.substring(1, TypeCode.length - 2);//去掉后面的“,”
                $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
                $('#DiseasesClassificationSupplement').combobox({
                    url: '@Url.Content("~/Medical/GetMSDictionaryInfo/?TypeCode=")' + TypeCode,
                    valueField: 'Name',
                    textField: 'Name',
                    method: 'post',
                    editable: false,
                    panelHeight: 'auto',
                    multiple: true,
                    groupField: 'TypeID',
                    prompt: '--请选择--',
                    onLoadSuccess: function () {
                        if (isNullOrEmptyString(DiseasesClassificationSupplement) != "") {
                            $('#DiseasesClassificationSupplement').combobox('setValues', DiseasesClassificationSupplement == "" ? "" : DiseasesClassificationSupplement.split(','));//病种分类补充
                        }
                    },
                    onChange: function (parm) {
                        SelectDiseasesClassificationSupplement();
                    },
                });
            }

        }
        else {
            $('#spanDiseasesClassificationSupplement').css("display", "none");//隐藏
            $('#lblDiseasesClassificationSupplement').css("display", "none");//
            $('#DiseasesClassificationSupplement').combobox('clear');//清空内容
            SelectDiseasesClassificationSupplement();
        }
    }

    //病种分类补充选择后变化
    function SelectDiseasesClassificationSupplement() {
        var value = GetComboboxMultiple(isNullOrEmptyString("DiseasesClassificationSupplement"));//病种分类补充
        var ObstetricExamination = isNullOrEmptyString($('#ObstetricExamination').combobox('getValue'));
        //妇产科疾病
        if (value.indexOf("产科") >= 0 && ObstetricExamination == "") {
            //$('#ObstetricExamination').combobox('setValue', "宫高");//产科检查选择
            $('#spanGongGao').css("color", "red");//宫高
            $('#ObstetricExamination').combobox('setValue', "--请选择--");//产科检查选择

        }
        else {
            //$('#ObstetricExamination').combobox('setValue', "--请选择--");//产科检查选择
            $('#spanGongGao').css("color", "Black");//宫高
        }
        var tiJianChoose = isNullOrEmptyString(SplitArray(GetCheckBox("tiJianChoose"))); //体检选择
        if (value.indexOf("接生") >= 0 && tiJianChoose != "拒查") {
            HidApgar(1);
        }
        else {
            HidApgar(0);
        }

        //病种分类包含“损伤性疾病”，TI评分展开
        var Names = SplitArray(GetCheckBox("DiseasesClassification"));
        if (tiJianChoose != "拒查" && Names.indexOf("损伤性疾病") >= 0 && value != "" && value.indexOf("伤") >= 0 && value.indexOf("其他损伤性疾病") < 0) {
            HidTI(1);
        }
        else {
            HidTI(0);
        }

        //脑血管意外\短暂性脑缺血发作\高血压脑病
        if (value.indexOf("脑血管意外") >= 0 || value.indexOf("短暂性脑缺血发作") >= 0 || value.indexOf("高血压脑病") >= 0) {
            var Consciousness = $('#Consciousness').combobox('getValue');//意识
            if (Consciousness == "昏迷" || Consciousness == "丧失") {
                $('#spanAnimalForce').css("color", "Black");//如果“意识”选择昏迷或者丧失，肌力不为必填项
            }
            else {
                $('#spanAnimalForce').css("color", "red");//肌力
            }
            //$('#tdNervousSystem').css("color", "red");
            var NervousSystems = isNullOrEmptyString($('#NervousSystem').combobox('getValue'));// 神经系统
            if (NervousSystems != "拒查" && NervousSystems != "未查") {
                $('#spanFaceAndSpeech').css("color", "red");//面部、言语
                $('#spanAnimalForce').css("color", "red");
                $('#lblNervousSystemSupplement').css("color", "Black");//20161118--增加神经系统补充说明
            }
            else {
                $('#spanFaceAndSpeech').css("color", "Black");//面部、言语
                $('#spanAnimalForce').css("color", "Black");

                if (NervousSystems == "未查") {
                    $('#lblNervousSystemSupplement').css("color", "red");//20161118神经系统的补充说明变红必填项

                }
            }
            //$('#spanMuscularTension').css("color", "red");
        }
        else {
            //$('#tdNervousSystem').css("color", "Black");
            $('#spanFaceAndSpeech').css("color", "Black");
            $('#spanAnimalForce').css("color", "Black");
            //$('#spanMuscularTension').css("color", "Black");
            $('#lblNervousSystemSupplement').css("color", "Black");//20161118--增加神经系统补充说明
        }
    }

    //点击皮肤后
    $('input[name="BodyFigureModels.CheckModelIDs"]').bind('click', function () {
        SelectBodyFigureModels();
    });

    //点击头部后
    $('input[name="HeadModels.CheckModelIDs"]').bind('click', function () {
        SelectHeadModels();
    });
    //点击颈部后
    $('input[name="NeckModels.CheckModelIDs"]').bind('click', function () {
        SelectNeckModels();
    });
    //点击胸部后
    $('input[name="ChestModels.CheckModelIDs"]').bind('click', function () {
        SelectChestModels();
    });
    //点击肺脏后
    $('input[name="LungModels.CheckModelIDs"]').bind('click', function () {
        SelectLungModels();
    });
    //点击腹部后
    $('input[name="FuBuModels.CheckModelIDs"]').bind('click', function () {
        SelectFuBuModels();
    });
    //点击脊柱后
    $('input[name="JiZhuModels.CheckModelIDs"]').bind('click', function () {
        SelectJiZhuModels();
    });
    //点击四肢后
    $('input[name="LimbModels.CheckModelIDs"]').bind('click', function () {
        SelectLimbModels();
    });


    //点击通知参加病历小讲课后-20151125
    $('input[name="NoticeAttendNursingLectures"]').bind('click', function () {
        SelectNoticeAttendNursingLectures();
    });
    //点击实际参加病历小讲课后-20151125
    $('input[name="ActualAttendNursingLectures"]').bind('click', function () {
        SelectActualAttendNursingLectures();
    });
    //点击补通知参加病历小讲课后-20151125
    $('input[name="FillNoticeAttendNursingLectures"]').bind('click', function () {
        SelectFillNoticeAttendNursingLectures();
    });
    //点击补实际参加病历小讲课后-20151209
    $('input[name="FillActualAttendNursingLectures"]').bind('click', function () {
        SelectFillActualAttendNursingLectures();
    });
    //点击补2通知参加病历小讲课后-20151209
    $('input[name="Fill2NoticeAttendNursingLectures"]').bind('click', function () {
        SelectFill2NoticeAttendNursingLectures();
    });


    //#region 选择性别后
    function SelectSexAndAge() {
        DisabledDiseasesClassification();
        var Sex = SplitArray(GetCheckBox("Sex")); //性别
        if (Sex == "男") {
            $('#ObstetricExamination').combobox('select', "--请选择--");//产科检查
            $('#ObstetricExamination').combobox('disable');//禁用--产科检查
            $('#spanGongGao').css("color", "Black");//宫高--字体变黑
            $('#GongGaoCartilagoEnsiformis').prop('disabled', 'disabled');//禁用--宫高剑突下
            $('#GongGaoCartilagoEnsiformis').val("");
            $('#GongGaoSuprapubic').prop('disabled', 'disabled');//禁用--宫高耻骨上
            $('#GongGaoSuprapubic').val("");
            $('#GongGaoNavel').prop('disabled', 'disabled');//禁用--宫高脐上
            $('#GongGaoNavel').val("");
            $('#GongGaoBelowUmbilicus').prop('disabled', 'disabled');//禁用--宫高脐下
            $('#GongGaoBelowUmbilicus').val("");
        }
        else {
            $('#ObstetricExamination').combobox('enable');//启用--产科检查
            $('#GongGaoCartilagoEnsiformis').prop('disabled', '');//启用--宫高剑突下
            $('#GongGaoSuprapubic').prop('disabled', '');//启用--宫高耻骨上
            $('#GongGaoNavel').prop('disabled', '');//启用--宫高脐上
            $('#GongGaoBelowUmbilicus').prop('disabled', '');//启用--宫高脐下
        }
    }
    //#endregion

    //根据性别、年龄、等来判断禁用“病种分类”内容
    function DisabledDiseasesClassification() {
        $('input[name="DiseasesClassification"]').each(function () {
            var Name = SplitArray(GetCheckBox("DiseasesClassification"));//病种分类选择
            var diseasesClassification = $(this).val();
            //如果性别为男，那么病种分类“妇产科疾病”禁用
            var Sex = SplitArray(GetCheckBox("Sex")); //性别

            //如果年龄>14岁，那么病种分类“儿科疾病”禁用
            var Age = $('#Age').numberbox('getValue');//年龄
            var AgeType = $('#AgeType').combobox('getValue'); //年龄类型
            if (AgeType == "岁" && Age > 14 && diseasesClassification == "儿科疾病") {
                $(this).prop("disabled", "disabled");
            }
            else if (Sex == "男" && diseasesClassification == "妇产科疾病") {
                $(this).prop("disabled", "disabled");
            }
                ////只能最多选择2项
                //else if (Name.indexOf(",") >= 0 && Name.indexOf($(this).val()) < 0) {
                //    $(this).prop("disabled", "disabled");
                //}

                //只能最多选择1项病种分类--20160922
            else if (Name.length > 0 && Name.indexOf($(this).val()) < 0) {
                $(this).prop("disabled", "disabled");
            }
            else
                $(this).prop("disabled", "");
        });
        //GetDiseasesClassification();

    }

    //清空主诉和现病史20160826
    function clearAlarmReason() {

        $('#tAlarmReasons').val("");//清空主诉隐藏值
        $('#HidHistoryOfPresentIllness').val("");//清空现病史隐藏值

        $('#tAlarmReason').textbox('setValue', "");//主诉
        $('#tHistoryOfPresentIllness').textbox('setValue', "");//清空现病史

        $.messager.alert('提示', '清空“主诉”和“现病史”成功！', 'info', function () {
        });
    }

    //根据病情预报和告知签字判断病历备注是否必填项--20161121
    function RequiredByRemark() {

        var value = $('#IllState').combobox('getValue');//病情分类
        var IllStateReport = $('#IllStateReport').combobox('getValue');//病情预报
        var FormedConsent = SplitArray(GetCheckBox("IFFormedConsent"));// 告知签字-20161121
        var AlarmType = SplitArray(GetCheckBox("alarmEventType")); //事件类型-20161121

        if (value == "危重" && (IllStateReport == "未报" || FormedConsent == "False")) {
            //alert(AlarmType);
            //alert(FormedConsent);
            if ((AlarmType != "回家" && IllStateReport == "未报") || FormedConsent == "False") {

                $('#spanRemark').css("color", "red");//备注
            }
            else {
                $('#spanRemark').css("color", "Black");
            }
        }
        else
            $('#spanRemark').css("color", "Black");

    }

    //获取combobox多选值的字符串
    function GetComboboxMultiple(ID) {
        var dcSupplement = "";
        if (ID != "") {
            var array = $('select[id="' + ID + '"]').combobox('getValues');
            for (var i = 0; i < array.length ; i++) {
                if (dcSupplement != '') {
                    dcSupplement += ',';
                }
                dcSupplement += array[i];
            }
        }
        return dcSupplement;
    }

    function DisabledCheckBox(Name, Value, Index) {
        var i = 0;
        $('input[name="' + Name + '"]').each(function () {
            if (Value != "") {
                if (Index < 2) {
                    if (i != Index) {
                        $(this).prop("disabled", "disabled");
                        //return false;
                    }
                }
                else {
                    if (i < 2) {
                        $(this).prop("disabled", "disabled");
                    }
                }

            }
            else
                $(this).prop("disabled", "");
            i++;
        });
    }

    //#region 获取和设置CheckBoxList复选框值

    //#region 获取
    /*
    Name:控件名称
    */
    function GetCheckBox(Name) {
        var chk_value = [];
        $('input[name="' + Name + '"]:checked').each(function () {
            chk_value.push($(this).val());
        });
        return chk_value;
    }
    //#endregion

    //#region 获取CheckBoxList或者Radio的value值
    /*
    Name:控件名称
    */
    function GetCheckBoxOrRadioValue(Name) {
        var chk_text = [];
        $('input[name="' + Name + '"]:checked').each(function () {
            chk_text.push($(this).val());
        });
        return chk_text;
    }
    //#endregion

    //#region 获取CheckBoxList的value值的合计
    /*
    Name:控件名称
    */
    function GetCheckBoxValueTotal(Name) {
        var chk_value = 0;
        $('input[name="' + Name + '"]:checked').each(function () {
            chk_value += parseInt($(this).val());
        });
        return chk_value;
    }
    //#endregion

    //#region 根据Index设置
    /*
    Name:控件名称
    Index:需要勾选的顺序号
    IsCheck:是否勾选
    */
    function SetCheckBox(Name, Index, IsCheck) {
        var i = 0;
        $('input[name="' + Name + '"]').each(function () {
            if (i == Index) {
                if (IsCheck == "True") {
                    $(this).prop("checked", true);
                    return false;
                } else {
                    $(this).prop("checked", false);
                    return false;
                }
            }
            i++;
        });
    }
    //#endregion

    //清除/选中所有勾选
    function unCheckBoxAll(Name, IsCheck) {
        //var i = 0;
        $('input[name="' + Name + '"]').each(function (index, element) {
            if (IsCheck == "True") {
                $('input[name="' + Name + '"]').prop("checked", true);
                return false;
            } else {
                $('input[name="' + Name + '"]').prop("checked", false);
                return false;
            }
            //i++;
        });
    }
    //#endregion

    //#region 根据名称串设置
    /*
    Name:控件名称
    List:名称串
    */
    function SetCheckBoxOfList(Name, List) {
        var list = List.split(",");
        $.each(list, function (key, val) {

            $('input[name="' + Name + '"]').each(function () {
                var temp = $(this).val();
                if (temp == val) {
                    $(this).attr("checked", true);
                }
            });
        });
    }
    //#endregion

    function SetRadioOfList(Name, List) {
        if (!isNullOrEmpty(List))
            $('input[name=' + Name + '][value=' + List + ']').attr("checked", true);

    }
    //20160111选择(告知签字)
    function SetRadioOfFormed(Name, List) {
        if (!isNullOrEmpty(List))
            $('input[name=' + Name + '][value=' + List + ']').prop("checked", true);

    }
    //20150909增加单选框方法（空车原因）
    function SetRadio(Name, List) {
        if (!isNullOrEmpty(List))
            $('input[name="' + Name + '"]').each(function () {
                var temp = $(this).val();
                if (List == temp) {
                    $(this).attr("checked", true);
                }
            });

    }
    //#endregion

    //默认隐藏；
    function defaultHidden() {
        var Name = SplitArray(GetCheckBox("DiseasesClassification"));
        // || Name.indexOf("神经系统") > 0
        if (Name.indexOf("妇产科") >= 0 || Name.indexOf("神经系统") >= 0) {
            $('#spanDiseasesClassificationSupplement').css("display", "");
            $('#lblDiseasesClassificationSupplement').css("display", "");//
        }
        else {
            $('#spanDiseasesClassificationSupplement').css("display", "none");//隐藏
            $('#lblDiseasesClassificationSupplement').css("display", "none");//
        }

        //心电图印象--如果第一次复查后面的文本框为空就隐藏
        if ($('#ECGImpressionRetestI').val() == "") {
            document.getElementById('ECGImpressionRetestI').hidden = true;
            $('#ECGImpressionRetestI').css("display", "none");//隐藏心电图印象第一、二次复查
            $('#ButtonECGFuSelect1').css("display", "none");
            $('#ButtonECGFuCha2').css("display", "none");
            $('#ECGImpressionRetestII').css("display", "none");
            $('#ButtonECGFuSelect2').css("display", "none");
            $('#ECGImpressionRetestIDoubt').css("display", "none");//隐藏--复查1疑问文本框20150916
            $('#ButtonECGImpressionRetestIDoubt').css("display", "none");//隐藏--复查1疑问按钮20150916
            $('#ECGImpressionRetestIIDoubt').css("display", "none");//隐藏--复查2疑问文本框20150916
            $('#ButtonECGImpressionRetestIIDoubt').css("display", "none");//隐藏--复查2疑问按钮20150916
        }
        //心电图印象--如果第二次复查后面的文本框为空就隐藏
        if ($('#ECGImpressionRetestII').val() == "") {
            document.getElementById('ECGImpressionRetestII').hidden = true;
            $('#ECGImpressionRetestII').css("display", "none");//隐藏心电图印象第二次复查
            $('#ButtonECGFuSelect2').css("display", "none");
            $('#ECGImpressionRetestIIDoubt').css("display", "none");//隐藏--复查2疑问文本框20150916
            $('#ButtonECGImpressionRetestIIDoubt').css("display", "none");//隐藏--复查2疑问按钮20150916
        }

        //血糖--如果第一次复查后面的文本框为空就隐藏
        if ($('#BloodSugarRetestI').val() == "") {
            document.getElementById('BloodSugarRetestI').hidden = true;
            $('#BloodSugarRetestI').css("display", "none");//隐藏血糖第一、二次复查
            $('#ButtonBloodSugarFuCha2').css("display", "none");
            $('#BloodSugarRetestII').css("display", "none");
        }
        //血糖--如果第二次复查后面的文本框为空就隐藏
        if ($('#BloodSugarRetestII').val() == "") {
            document.getElementById('BloodSugarRetestII').hidden = true;
            $('#BloodSugarRetestII').css("display", "none");//隐藏血糖第二次复查
            $('#ButtonBloodSugarFuCha2').css("display", "none");
        }

        //血氧饱和度--如果第一次复查后面的文本框为空就隐藏
        if ($('#BloodOxygenRetestI').val() == "") {
            document.getElementById('BloodOxygenRetestI').hidden = true;
            $('#BloodOxygenRetestI').css("display", "none");//隐藏血糖第一、二次复查
            $('#ButtonBloodOxygenFuCha2').css("display", "none");
            $('#BloodOxygenRetestII').css("display", "none");
        }
        //血氧饱和度--如果第二次复查后面的文本框为空就隐藏
        if ($('#BloodOxygenRetestII').val() == "") {
            document.getElementById('BloodOxygenRetestII').hidden = true;
            $('#BloodOxygenRetestII').css("display", "none");//隐藏血糖第二次复查
            $('#ButtonBloodOxygenFuCha2').css("display", "none");
        }


        //$('#lblCureCooperateBuChong').css("display", "none");//隐藏病家合作度不合作的lable
        //$('#tNotCooperationExplain').css("display", "none"); //隐藏病家合作度不合作的文本框


    }

    //瞳孔-根据选择来判断是否显示补充描述；
    function selectPupil() {
        var value = $('#Pupilla').datebox('getValue');
        if (value == "扩大" || value == "缩小" || value == "不等" || value == "其它") {
            $('#lablPupilBuChong').css("display", "");
            $('#PupillaSupplement').css("display", "");
        }
        else {
            $('#lablPupilBuChong').css("display", "none");//隐藏补充描述的lable
            $('#PupillaSupplement').css("display", "none");//隐藏补充描述的文本框
            $('#PupillaSupplement').val("");//清除补充描述的文本框内容
        }
    }

    //对光反射-根据选择来判断是否显示补充描述；
    function selectLightReflex() {
        var value = $('#LightReflex').datebox('getValue');
        if (value == "其他") {
            $('#lblLightReflexSupplement').css("display", "");
            $('#LightReflexSupplement').css("display", "");
        }
        else {
            $('#lblLightReflexSupplement').css("display", "none");//隐藏补充描述的lable
            $('#LightReflexSupplement').css("display", "none");//隐藏补充描述的文本框
            $('#LightReflexSupplement').val("");//清除补充描述的文本框内容
        }
    }

    //病家合作度
    function selectDiseaseCooperation() {
        var value = $('#DiseaseCooperation').datebox('getValue');
        if (value == "不合作") {
            $('#lblCureCooperateBuChong').css("display", "");
            $('#tNotCooperationExplain').css("display", "");
        }
        else if (value != "不合作") {
            $('#lblCureCooperateBuChong').css("display", "none");//隐藏病家合作度不合作的lable
            $('#tNotCooperationExplain').css("display", "none");//隐藏病家合作度不合作的文本框
            $('#DiseaseNotCooperationSupplement').val("");// 清空--病家不合作补充说明
        }
    }

    //选择RadioButton获取选择值；
    function selctRadioButton(mainID, node) {
        document.getElementById("Radio_" + mainID + "_" + node + "").checked = "checked";
        document.getElementById("" + mainID + "").value = document.getElementById("Radio_" + mainID + "_" + node + "").value;
        document.getElementById("HidAlarmEventType").value = document.getElementById("Radio_" + mainID + "_" + node + "").value;

        //救治记录--暂时隐藏
        //if (mainID == "IFRefuseTreatment" && node == "0") {
        //    $('#trRescueType').css("display", "");
        //    $('#trPRRescueList').css("display", "");
        //}
        //else if (mainID == "IFRefuseTreatment" && node != "0") {
        //    $('#trRescueType').css("display", "none");//隐藏救治记录--抢救类型
        //    $('#trPRRescueList').css("display", "none");//隐藏救治记录
        //}
    }
    //空车---是否见到病人选择
    function selectIsSeePeople() {
        var value = SplitArray(GetCheckBox("IsSeePeople"));
        if (value == "见人") {
            $('#EmptyReasonName').css("display", "");//显示空车原因lable
            $('#EmptyReason').css("display", "");//显示空车原因选择
            $('#IsSeePeopleName').css("display", "");//显示是否见人
            $('#IsSeePeople').css("display", "");//显示空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            ShowCaseTemplate();//显示--病种分类
            $('#trJ0').css("display", "");//显示行：病种分类
            $('#trJ1').css("display", "");//显示行：主诉
            $('#trJ2').css("display", "");//显示行：现病史
            $('#trJ3').css("display", "");//显示行：自救措施
            $('#trJAnamnesisllnessHistory').css("display", "");//隐藏行：既往病史
            $('#trJAnamnesisllnessHistoryBuChong').css("display", "");//隐藏行：既往病史的补充说明

            HidTransferIllnessRecord();//隐藏--转(出)院病情记录
            ShowTiJian();//显示--体检
            ShowTiJianPart();//显示--体检部分
            HidQiTaBiYaoJiLu();//隐藏--其他必要记录
            ShowPF();//显示--3个评分
            ShowEquipmentInspection();//显示--必要器械检查
            ShowJiuZhiJiLu();//显示--救治记录
            $("#gridPRRescueList").datagrid("reload");//20160826刷新救治记录列表
            Showxffs();//显示--心肺复苏
            ShowCPRIllState();//显示--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            //ShowCPRPart();//显示--心肺复苏的科教部来填写的部分
            ShowShenHe();//显示--审核
            //HidShenHe();//隐藏--审核

            ColorPastMedicalHistorySupplement();
            SetBlack();
            SetKongCheRed();//设置空车 见人 必填项
            //SetRed();//设置必填项的字为红色
            HidInstrumentalExamination();
            $('#spanFormedConsent').css("display", "");//显示--告知签字20161212
            $('#IFFormedConsent').css("display", "");//显示--告知签字20161212
        } else if (value == "未见人") {
            $('#EmptyReasonName').css("display", "");//显示空车原因lable
            $('#EmptyReason').css("display", "");//显示空车原因选择
            $('#IsSeePeopleName').css("display", "");//显示是否见人
            $('#IsSeePeople').css("display", "");//显示空车是否见人
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框

            HidCaseTemplate();//隐藏--病种分类
            HidTransferIllnessRecord();//隐藏--转(出)院病情记录
            HidTiJian();//隐藏--体检
            HidPF();//隐藏--3个评分
            HidEquipmentInspection();//隐藏--必要器械检查
            HidJiuZhiJiLu();//隐藏--救治记录
            Hidxffs();//隐藏--心肺复苏
            //HidCPRIllState();//隐藏--心肺复苏（病情分类、回访）20150911
            //HidCPRPart();//隐藏--心肺复苏的科教部来填写的部分
            HidShenHe();//隐藏--审核

            SetBlack();//设置不必填项的字为黑色
            $('#tdProvideMedicalHistoryPeople').css("color", "Black");
        }
    }
    //空车原因
    function selectEmptyReason() {
        var value = SplitArray(GetCheckBox("EmptyReason")); //空车原因
        if (value == "其他") {
            $('#lblEmptyReasonSupplement').css("display", "");//显示空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "");//显示空车原因的补充说明文本框
        }
        else {
            $('#lblEmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明lable
            $('#EmptyReasonSupplement').css("display", "none");//隐藏空车原因的补充说明文本框
        }
    }

    //隐藏调度信息
    function HidAttemperData() {
        if (document.getElementById("CheckBox_AttemperData").checked == true) {
            $('#trAttemperData1').css("display", "");//显示调度信息第一行
            $('#trAttemperData2').css("display", "");
            $('#trAttemperData3').css("display", "");
            $('#trAttemperData4').css("display", "");
            $('#trAttemperData5').css("display", "");
        }
        else {
            $('#trAttemperData1').css("display", "none");//隐藏调度信息第一行
            $('#trAttemperData2').css("display", "none");
            $('#trAttemperData3').css("display", "none");
            $('#trAttemperData4').css("display", "none");
            $('#trAttemperData5').css("display", "none");
        }
    }

    function HidCaseTemplate() {
        $('#trJCaseTemplate').css("display", "none");//隐藏行：病种分类、主诉、现病史
        //$('#trJ0').css("display", "none");//隐藏行：病种分类
        //$('#trJ1').css("display", "none");//隐藏行：主诉
        //$('#trJ2').css("display", "none");//隐藏行：现病史
        //$('#trJ3').css("display", "none");//隐藏行：自救措施
        $('#trJAnamnesisllnessHistory').css("display", "none");//隐藏行：既往病史
        $('#trJAnamnesisllnessHistoryBuChong').css("display", "none");//隐藏行：既往病史的补充说明
    }
    //显示--
    function ShowCaseTemplate() {
        $('#trJCaseTemplate').css("display", "");//显示行：病种分类、主诉、现病史
        $('#trJAnamnesisllnessHistory').css("display", "");//显示行：既往病史
        $('#trJAnamnesisllnessHistoryBuChong').css("display", "");//显示行：既往病史的补充说明
    }

    //隐藏--转(出)院病情记录
    function HidTransferIllnessRecord() {
        $('#trTransferIllnessRecord').css("display", "none");//隐藏行：转(出)院病情记录
        $('#trDischargeDiagnosis').css("display", "none");//隐藏行：转出院诊断
        $('#trMainTreatmentMeasures').css("display", "none");//隐藏行：医院主要治疗措施
        $('#trPatientsSymptoms').css("display", "none");//隐藏行：目前患者症状
    }
    //显示--转(出)院病情记录
    function ShowTransferIllnessRecord() {
        $('#trTransferIllnessRecord').css("display", "");//显示行：转(出)院病情记录
        $('#trDischargeDiagnosis').css("display", "");//显示行：转出院诊断
        $('#trMainTreatmentMeasures').css("display", "");//显示行：医院主要治疗措施
        $('#trPatientsSymptoms').css("display", "");//显示行：目前患者症状
    }

    //隐藏--体检
    function HidTiJian() {
        $('#tableTiJian').css("display", "none");//隐藏表：体检
    }
    //显示--体检
    function ShowTiJian() {
        $('#tableTiJian').css("display", "");//显示表：体检
    }

    //隐藏--体检部分内容
    function HidTiJianPart() {
        $('#lblPupil').css("display", "none");//隐藏行：瞳孔
        $('#tdPupil').css("display", "none");//隐藏行：瞳孔
        $('#trBodyFigure').css("display", "none");//隐藏行：皮肤
        $('#trHead').css("display", "none");//隐藏行：头部
        $('#trNeck').css("display", "none");//隐藏行：颈部
        $('#trChest').css("display", "none");//隐藏行：胸部
        $('#trLung').css("display", "none");//隐藏行：肺脏
        $('#trHeart').css("display", "none");//隐藏行：心脏
        $('#trFuBu').css("display", "none");//隐藏行：腹部
        $('#trJiZhu').css("display", "none");//隐藏行：脊柱
        $('#trLimb').css("display", "none");//隐藏行：四肢
        $('#trShenJingSys').css("display", "none");//隐藏行：神经系统
        $('#trObstetricExamination').css("display", "none");//隐藏行：产科检查
        $('#trTiJianSupplement').css("display", "none");//隐藏行：体检补充描述
    }
    //显示--体检部分内容
    function ShowTiJianPart() {
        $('#lblPupil').css("display", "");//显示行：瞳孔
        $('#tdPupil').css("display", "");//显示行：瞳孔
        $('#trBodyFigure').css("display", "");//显示行：皮肤
        $('#trHead').css("display", "");//显示行：头部
        $('#trNeck').css("display", "");//显示行：颈部
        $('#trChest').css("display", "");//显示行：胸部
        $('#trLung').css("display", "");//显示行：肺脏
        $('#trHeart').css("display", "");//显示行：心脏
        $('#trFuBu').css("display", "");//显示行：腹部
        $('#trJiZhu').css("display", "");//显示行：脊柱
        $('#trLimb').css("display", "");//显示行：四肢
        $('#trShenJingSys').css("display", "");//显示行：神经系统
        $('#trObstetricExamination').css("display", "");//显示行：产科检查
        $('#trTiJianSupplement').css("display", "");//显示行：体检补充描述
    }

    //判断心肺复苏审核不通过原因是否显示
    function HidCenterAuditResult() {
        var CenterAuditResult = SplitArray(GetCheckBox("CenterAuditResult"));// 中心审核结果
        if (CenterAuditResult == "未通过" || CenterAuditResult == "待定") {
            $('#divCenterNotThroughReason').css("display", "");
        }
        else {
            //document.getElementById("lblWtgReason").style.display = "none";//隐藏中心不通过的lable
            $('#divCenterNotThroughReason').css("display", "none");//隐藏心肺复苏--中心不通过的原因的文本框
        }
    }


    //隐藏--其他必要记录
    function HidQiTaBiYaoJiLu() {
        $('#trQiTaBiYaoJiLu').css("display", "none");//隐藏行：其他必要记录
    }
    //显示--其他必要记录
    function ShowQiTaBiYaoJiLu() {
        $('#trQiTaBiYaoJiLu').css("display", "");//显示行：其他必要记录
    }

    //隐藏--3个评分
    function HidPF() {
        $('#tbPF').css("display", "none");//隐藏表：3个评分
    }
    //显示--3个评分
    function ShowPF() {
        $('#tbPF').css("display", "");//隐藏表：3个评分
    }

    //隐藏--行：必要器械检查、心电图印象、血糖、血氧饱和度、初步印象
    function HidEquipmentInspection() {
        $('#trEquipmentInspection').css("display", "none");//隐藏行：必要器械检查
        $('#trECGImpressions').css("display", "none");//隐藏行：心电图印象
        $('#trECGImpressionsSupplement').css("display", "none");//隐藏行：心电图印象其他
        $('#trBloodSugar').css("display", "none");//隐藏行：血糖
        $('#trBloodOxygen').css("display", "none");//隐藏行：血氧饱和度
        $('#trPrimaryDiagnoses').css("display", "none");//隐藏行：初步印象
        $('#trPrimaryDiagnosesSupplement').css("display", "none");//隐藏行：初步印象其他

        //2022-10-18 zch 隐藏心电图时间 //add2024-08-26 plq移植
        $('#trECGImpressionsTime').css("display", "none");
    }
    //显示--行：必要器械检查、心电图印象、血糖、血氧饱和度、初步印象
    function ShowEquipmentInspection() {
        $('#trEquipmentInspection').css("display", "");//显示行：必要器械检查
        $('#trECGImpressions').css("display", "");//显示行：心电图印象
        $('#trECGImpressionsSupplement').css("display", "");//显示行：心电图印象其他
        $('#trBloodSugar').css("display", "");//显示行：血糖
        $('#trBloodOxygen').css("display", "");//显示行：血氧饱和度
        $('#trPrimaryDiagnoses').css("display", "");//显示行：初步印象
        $('#trPrimaryDiagnosesSupplement').css("display", "");//显示行：初步印象其他

        //2022-10-18 zch 隐藏心电图时间 //add2024-08-26 plq移植
        $('#trECGImpressionsTime').css("display", "");
    }

    //隐藏--救治记录
    function HidJiuZhiJiLu() {
        $('#trJiuZhiJiLu').css("display", "none");//隐藏行：救治记录
        $('#trMeasureInfo').css("display", "none");//隐藏行：诊疗操作 add2022-08-17 plq
    }
    //显示--救治记录
    function ShowJiuZhiJiLu() {
        $('#trJiuZhiJiLu').css("display", "");//显示行：救治记录
        $('#trMeasureInfo').css("display", "");//显示行：诊疗操作  add2022-08-17 plq
    }

    //隐藏--心肺复苏
    function Hidxffs() {
        $('#tbxffs').css("display", "none");//隐藏表：心肺复苏
    }
    //显示--心肺复苏
    function Showxffs() {
        $('#tbxffs').css("display", "");//隐藏表：心肺复苏
    }

    //隐藏--心肺复苏的科教部来填写的部分
    function HidCPRPart() {
        $('#Tr39').css("display", "none");//隐藏行：是否出院
        $('#Tr40').css("display", "none");//隐藏行：出院时CPC数值
    }
    //显示--心肺复苏的科教部来填写的部分
    function ShowCPRPart() {
        $('#Tr39').css("display", "");//显示行：是否出院
        $('#Tr40').css("display", "");//显示行：出院时CPC数值
    }

    //隐藏--心肺复苏的部分
    function HidCPRIllState() {
        $('#Tr33').css("display", "none");//隐藏行：心肺复苏成功申报
        //$('#Tr34').css("display", "none");//隐藏行：目击者
        //$('#Tr35').css("display", "none");//隐藏行：复苏后心电图诊断
        //$('#Tr38').css("display", "none");//隐藏行：颈A搏动出现时间
        //$('#Tr39').css("display", "none");//隐藏行：是否出院
        //$('#Tr40').css("display", "none");//隐藏行：出院时CPC数值
        $('#TrIllState').css("display", "none");//隐藏行：病情分类
        $('#trFirstAidEffect').css("display", "none");//隐藏行：急救效果
        $('#trDoctorFollowUp').css("display", "none");//隐藏行：回访
    }
    //显示--心肺复苏的部分
    function ShowCPRIllState() {
        $('#Tr33').css("display", "");//显示行：心肺复苏成功申报
        $('#TrIllState').css("display", "");//显示行：病情分类
        $('#trFirstAidEffect').css("display", "");//显示行：急救效果
        $('#trDoctorFollowUp').css("display", "");//显示行：回访
    }

    //隐藏--审核
    function HidShenHe() {
        $('#divshenhe').css("display", "none");//隐藏：审核
        $('#btnCenterAudit').css("display", "none");//隐藏：审核
    }
    //显示--审核
    function ShowShenHe() {
        $('#divshenhe').css("display", "");//显示：审核
        //$('#btnCenterAudit').css("display", "");//隐藏：审核
    }


    //20151123增加判断送往地点选择
    function JudgeSendAddress() {
        var selectName = GetCheckBox("alarmEventType");
        var value = isNullOrEmptyString($('#SendAddress').combobox('getValue'));
        if (value != "") {
            //20161124--车到不送修改为车到未送
            if (selectName == "空车" || value.indexOf("车到未送") >= 0) {
                $('#tdArriveDestinationTime').css("color", "Black");
                //$('#lblArriveDestinationTimeSupplement').css("color", "Black");//到达时间补充
            }
            else {
                $('#tdArriveDestinationTime').css("color", "red");
                //$('#lblArriveDestinationTimeSupplement').css("color", "red");//到达时间补充
            }
        }
    }
    //如果既往病史选择其他，既往病史的补充说明变红
    function ColorPastMedicalHistorySupplement() {
        var PastMedicalHistory = SplitArray(GetCheckBox("PastMedicalHistory"));
        if (PastMedicalHistory.indexOf("其他") >= 0) {
            $('#trJAnamnesisllnessHistoryBuChong').css("color", "red");//变红：既往病史的补充说明
        }
        else
            $('#trJAnamnesisllnessHistoryBuChong').css("color", "Black");//变黑：既往病史的补充说明
    }

    //选择T后
    function TChooseChange() {
        var value = isNullOrEmptyString($('#TChoose').combobox('getValue'));
        if (value == "") {
            $('#tT').numberbox('enable');//启用--
        }
        else {
            $('#tT').numberbox('disable');//禁用--
            $('#tT').numberbox('setValue', "");
        }
    }
    //选择P后
    function PChooseChange() {
        var value = isNullOrEmptyString($('#PChoose').combobox('getValue'));
        if (value == "") {
            $('#tP').numberbox('enable');//启用--
        }
        else {
            $('#tP').numberbox('disable');//禁用--
            $('#tP').numberbox('setValue', "");
        }
    }
    //选择R后
    function RChooseChange() {
        var value = isNullOrEmptyString($('#RChoose').combobox('getValue'));
        if (value == "") {
            $('#tR').numberbox('enable');//启用--
        }
        else {
            $('#tR').numberbox('disable');//禁用--
            $('#tR').numberbox('setValue', "");
        }
    }
    //选择BP后
    function BPChooseChange() {
        var value = isNullOrEmptyString($('#BP').combobox('getValue'));
        if (value == "") {
            $('#tBP1').numberbox('enable');//启用--
            $('#tBP2').numberbox('enable');//启用--
            $('#kPa1').numberbox('enable');//启用--
            $('#kPa2').numberbox('enable');//启用--
        }
        else {
            $('#tBP1').numberbox('disable');//禁用--
            $('#tBP2').numberbox('disable');//禁用--
            $('#kPa1').numberbox('disable');//禁用--
            $('#kPa2').numberbox('disable');//禁用--
            $('#tBP1').numberbox('setValue', "");
            $('#tBP2').numberbox('setValue', "");
            $('#kPa1').numberbox('setValue', "");
            $('#kPa2').numberbox('setValue', "");
        }
    }

    //如果肺脏-两肺呼吸音选择"不等"，既往肺脏的补充描述变红
    function ColorLungsSupplement() {
        var TwoLungBreathingSound = isNullOrEmptyString($('#TwoLungBreathingSound').combobox('getValue'));// 肺脏--两肺呼吸音
        if (TwoLungBreathingSound.indexOf("不等") >= 0) {
            $('#lblLungsSupplement').css("color", "red");//变红：
        }
        else
            $('#lblLungsSupplement').css("color", "Black");//变黑：
    }

    //如果心脏不是“请选择”，心率、心律变红
    function ColorHeart() {
        var Heart = isNullOrEmptyString($('#Heart').combobox('getValue'));// 心脏
        if (Heart == "") {
            $('#lblXinLv').css("color", "red");//变红：
            $('#lblHeartRhythm').css("color", "red");//变红：

            //$('#HeartRate').prop('disabled', '');//启用--心率
            $('#HeartRate').numberbox('enable');//启用--心率20160926
            $('#HeartRhythm').combobox('enable');//启用--心律
            $('#HeartMurmur').combobox('enable');//启用--杂音
        }
        else {
            $('#lblXinLv').css("color", "Black");//变黑：
            $('#lblHeartRhythm').css("color", "Black");//变黑：

            //$('#HeartRate').prop('disabled', 'disabled');//禁用--心率
            $('#HeartRate').numberbox('disable');//禁用--心率20160926
            $('#HeartRhythm').combobox('disable');//禁用--心律
            $('#HeartMurmur').combobox('disable');//禁用--杂音
            //$('#HeartRate').val("");//清空--心率
            $('#HeartRate').numberbox('setValue', "");//清空--心率20160926
            $('#HeartRhythm').combobox('select', "--请选择--");//
            $('#HeartMurmur').combobox('select', "--请选择--");//
        }
    }

    //如果产科检查选择不是“请选择”，宫高后面都禁用
    function ObstetricExaminationSelect() {
        var ObstetricExamination = isNullOrEmptyString($('#ObstetricExamination').combobox('getValue'));//
        var value = GetComboboxMultiple(isNullOrEmptyString("DiseasesClassificationSupplement"));//病种分类补充

        if (ObstetricExamination == "") {
            $('#GongGaoCartilagoEnsiformis').prop('disabled', '');//启用--宫高剑突下
            $('#GongGaoSuprapubic').prop('disabled', '');//启用--宫高耻骨上
            $('#GongGaoNavel').prop('disabled', '');//启用--宫高脐上
            $('#GongGaoBelowUmbilicus').prop('disabled', '');//启用--宫高脐下

            if (value.indexOf("产科") >= 0) {
                $('#spanGongGao').css("color", "red");//宫高
            }
            else
                $('#spanGongGao').css("color", "Black");//宫高--字体变黑
        }
        else {
            $('#spanGongGao').css("color", "Black");//宫高--字体变黑
            $('#GongGaoCartilagoEnsiformis').prop('disabled', 'disabled');//禁用--宫高剑突下
            $('#GongGaoCartilagoEnsiformis').val("");
            $('#GongGaoSuprapubic').prop('disabled', 'disabled');//禁用--宫高耻骨上
            $('#GongGaoSuprapubic').val("");
            $('#GongGaoNavel').prop('disabled', 'disabled');//禁用--宫高脐上
            $('#GongGaoNavel').val("");
            $('#GongGaoBelowUmbilicus').prop('disabled', 'disabled');//禁用--宫高脐下
            $('#GongGaoBelowUmbilicus').val("");
        }
    }

    //体检选择对应改变
    function SelectTiJian() {

        var selectName = GetCheckBox("tiJianChoose");

        //如果体检选择“正常”
        if (selectName == "正常") {
            $('#TChoose').combobox('select', "--请选择--");//
            $('#PChoose').combobox('select', "--请选择--");//
            $('#BP').combobox('select', "--请选择--");//
            $('#Consciousness').combobox('select', "正常");//意识
            $('#Pupilla').combobox('select', "正常");//瞳孔
            $('#LightReflex').combobox('select', "正常");//对光反射
            //SetCheckBoxOfList("BodyFigureModels.CheckModelIDs", "正常"); //皮肤
            unCheckBoxAll("BodyFigureModels.CheckModelIDs", "");//清除皮肤所有勾选内容
            SetCheckBox("BodyFigureModels.CheckModelIDs", 0, "True");//皮肤
            //var tt = "BodyFigureModels.CheckModelIDs";
            //$('input[name="' + tt + '"][value=' + selectName + ']').attr("checked", true);//皮肤

            unCheckBoxAll("HeadModels.CheckModelIDs", "");//清除头部所有勾选内容
            SetCheckBox("HeadModels.CheckModelIDs", 0, ""); //头部--清空选择拒查
            unCheckBoxAll("NeckModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("NeckModels.CheckModelIDs", 0, ""); //颈部--清空选择拒查
            unCheckBoxAll("ChestModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("ChestModels.CheckModelIDs", 0, ""); //胸部--清空选择拒查
            unCheckBoxAll("LungModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("LungModels.CheckModelIDs", 0, ""); //肺脏--清空选择拒查

            $('#Heart').combobox('select', "--请选择--");//心脏--清空选择拒查

            unCheckBoxAll("FuBuModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("FuBuModels.CheckModelIDs", 0, ""); //腹部--清空选择拒查
            unCheckBoxAll("JiZhuModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("JiZhuModels.CheckModelIDs", 0, ""); //脊柱--清空选择拒查
            unCheckBoxAll("LimbModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("LimbModels.CheckModelIDs", 0, ""); //四肢--清空选择拒查

            $('#NervousSystem').combobox('select', "--请选择--");//神经系统
            $('#ObstetricExamination').combobox('select', "--请选择--");//产科检查
        }
        if (selectName == "拒查") {
            $('#TChoose').combobox('select', "拒测");//
            //$('#txtT').val("拒测");
            $('#PChoose').combobox('select', "拒测");//
            //$('#txtP').val("拒测");
            $('#BP').combobox('select', "拒测");//
            $('#Consciousness').combobox('select', "--请选择--");//意识
            $('#Pupilla').combobox('select', "拒查");//瞳孔
            $('#LightReflex').combobox('select', "拒查");//对光反射

            unCheckBoxAll("BodyFigureModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("BodyFigureModels.CheckModelIDs", 0, ""); //皮肤--清空选择“正常”

            unCheckBoxAll("HeadModels.CheckModelIDs", "");//清除头部所有勾选内容
            SetCheckBox("HeadModels.CheckModelIDs", 0, "True"); //头部--选择拒查
            unCheckBoxAll("NeckModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("NeckModels.CheckModelIDs", 0, "True"); //颈部--选择拒查
            unCheckBoxAll("ChestModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("ChestModels.CheckModelIDs", 0, "True"); //胸部--选择拒查
            unCheckBoxAll("LungModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("LungModels.CheckModelIDs", 0, "True"); //肺脏--选择拒查

            $('#Heart').combobox('select', "拒查");//心脏

            unCheckBoxAll("FuBuModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("FuBuModels.CheckModelIDs", 0, "True"); //腹部--选择拒查
            unCheckBoxAll("JiZhuModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("JiZhuModels.CheckModelIDs", 0, "True"); //脊柱--选择拒查
            unCheckBoxAll("LimbModels.CheckModelIDs", "");//清除所有勾选内容
            SetCheckBox("LimbModels.CheckModelIDs", 0, "True"); //四肢--选择拒查

            $('#NervousSystem').combobox('select', "拒查");//神经系统

            var Sex = SplitArray(GetCheckBox("Sex")); //性别
            if (Sex != "男") {
                $('#ObstetricExamination').combobox('select', "拒查");//产科检查
            }
        }
        if (selectName == "请选择") {
            $('#TChoose').combobox('select', "未测");//
            //$('#txtT').val("");
            $('#PChoose').combobox('select', "--请选择--");//
            //$('#txtP').val("");
            $('#BP').combobox('select', "--请选择--");//

            $('#Consciousness').combobox('select', "--请选择--");//意识
            $('#Pupilla').combobox('select', "--请选择--");//瞳孔
            $('#LightReflex').combobox('select', "--请选择--");//对光反射

            unCheckBoxAll("BodyFigureModels.CheckModelIDs", "");//清除皮肤所有勾选内容

            unCheckBoxAll("HeadModels.CheckModelIDs", "");//清除头部所有勾选内容
            unCheckBoxAll("NeckModels.CheckModelIDs", "");//清除所有勾选内容
            unCheckBoxAll("ChestModels.CheckModelIDs", "");//清除所有勾选内容
            unCheckBoxAll("LungModels.CheckModelIDs", "");//清除所有勾选内容

            $('#Heart').combobox('select', "--请选择--");//心脏--清空选择拒查

            unCheckBoxAll("FuBuModels.CheckModelIDs", "");//清除所有勾选内容
            unCheckBoxAll("JiZhuModels.CheckModelIDs", "");//清除所有勾选内容
            unCheckBoxAll("LimbModels.CheckModelIDs", "");//清除所有勾选内容

            $('#NervousSystem').combobox('select', "--请选择--");//神经系统
            $('#ObstetricExamination').combobox('select', "--请选择--");//产科检查
        }

        SelectHeadModels();
        SelectNeckModels();
        SelectChestModels();
        SelectLungModels();
        SelectFuBuModels();
        SelectJiZhuModels();
        SelectLimbModels();
        SelectDiseasesClassificationSupplement();
    }

    //选择皮肤后
    function SelectBodyFigureModels() {
        var selectName = SplitArray(GetCheckBox("BodyFigureModels.CheckModelIDs"));
        if (selectName.indexOf("其它") >= 0) {
            $('#lblSkinSupplement').css("color", "red");
        }
        else {
            $('#lblSkinSupplement').css("color", "Black");
        }
    }
    //选择头部后禁用
    function SelectHeadModels() {
        var HeadIndex;
        var selectName = SplitArray(GetCheckBox("HeadModels.CheckModelIDs"));
        if (selectName == "拒查")
            HeadIndex = 0;
        else if (selectName == "未查")
            HeadIndex = 1;
        else
            HeadIndex = 2;
        DisabledCheckBox("HeadModels.CheckModelIDs", selectName, HeadIndex);
    }

    //颈部
    function SelectNeckModels() {

        var Index;
        var selectName = SplitArray(GetCheckBox("NeckModels.CheckModelIDs"));
        if (selectName == "拒查")
            Index = 0;
        else if (selectName == "未查")
            Index = 1;
        else
            Index = 2;
        DisabledCheckBox("NeckModels.CheckModelIDs", selectName, Index);
    }

    //胸部
    function SelectChestModels() {

        var Index;
        var selectName = SplitArray(GetCheckBox("ChestModels.CheckModelIDs"));
        if (selectName == "拒查")
            Index = 0;
        else if (selectName == "未查")
            Index = 1;
        else
            Index = 2;
        DisabledCheckBox("ChestModels.CheckModelIDs", selectName, Index);

        //20150918
        if (Index == 0 || Index == 1) {
            $('input[name="ChestExtrusionTest"]').prop("disabled", "disabled");//禁用--（胸部--胸廓挤压试验）
            unCheckBoxAll("ChestExtrusionTest", "");//清除所有勾选内容-胸部--胸廓挤压试验
        }
        else
            $('input[name="ChestExtrusionTest"]').prop("disabled", "");//
    }

    //肺脏
    function SelectLungModels() {

        var Index;
        var selectName = SplitArray(GetCheckBox("LungModels.CheckModelIDs"));
        if (selectName == "拒查") {
            Index = 0;

            $('#spanTwoLungBreathingSound').css("display", "none");//隐藏：两肺呼吸音选择
            $('#TwoLungBreathingSound').combobox('setValue', "--请选择--");//两肺呼吸音选择
        }
        else if (selectName == "未查") {
            Index = 1;

            $('#spanTwoLungBreathingSound').css("display", "none");//隐藏：两肺呼吸音选择
            $('#TwoLungBreathingSound').combobox('setValue', "--请选择--");//两肺呼吸音选择
        }
        else {
            Index = 2;
            if (selectName == "") {
                $('#spanTwoLungBreathingSound').css("display", "none");//隐藏：两肺呼吸音选择
                $('#TwoLungBreathingSound').combobox('setValue', "--请选择--");//两肺呼吸音选择
            }
            else
                $('#spanTwoLungBreathingSound').css("display", "");//显示：两肺呼吸音选择
        }
        DisabledCheckBox("LungModels.CheckModelIDs", selectName, Index);

        //20150918
        if (Index == 0 || Index == 1) {
            $('input[name="LungLeftModels.CheckModelIDs"]').prop("disabled", "disabled");//禁用--左肺
            $('input[name="LungRightModels.CheckModelIDs"]').prop("disabled", "disabled");//禁用--右肺
            unCheckBoxAll("LungLeftModels.CheckModelIDs", "");//清除所有勾选内容-左肺
            unCheckBoxAll("LungRightModels.CheckModelIDs", "");//清除所有勾选内容-右肺
        }
        else {
            $('input[name="LungLeftModels.CheckModelIDs"]').prop("disabled", "");//左肺
            $('input[name="LungRightModels.CheckModelIDs"]').prop("disabled", "");//右肺

        }
    }

    //腹部
    function SelectFuBuModels() {

        var Index;
        var selectName = SplitArray(GetCheckBox("FuBuModels.CheckModelIDs"));
        if (selectName == "拒查")
            Index = 0;
        else if (selectName == "未查")
            Index = 1;
        else
            Index = 2;
        DisabledCheckBox("FuBuModels.CheckModelIDs", selectName, Index);
    }

    //脊柱
    function SelectJiZhuModels() {

        var Index;
        var selectName = SplitArray(GetCheckBox("JiZhuModels.CheckModelIDs"));
        if (selectName == "拒查")
            Index = 0;
        else if (selectName == "未查")
            Index = 1;
        else
            Index = 2;
        DisabledCheckBox("JiZhuModels.CheckModelIDs", selectName, Index);
    }

    //四肢
    function SelectLimbModels() {

        var Index;
        var selectName = SplitArray(GetCheckBox("LimbModels.CheckModelIDs"));
        if (selectName == "拒查")
            Index = 0;
        else if (selectName == "未查")
            Index = 1;
        else
            Index = 2;
        DisabledCheckBox("LimbModels.CheckModelIDs", selectName, Index);

        //20150918
        if (Index == 0 || Index == 1) {
            $('input[name="PelvicExtrusionTest"]').prop("disabled", "disabled");//禁用--骨盆挤压试验
            unCheckBoxAll("PelvicExtrusionTest", "");//清除所有勾选内容--骨盆挤压试验
        }
        else
            $('input[name="PelvicExtrusionTest"]').prop("disabled", "");//
    }

    function CalculationScore() {
        //GCS评分
        var openReactionScore = isNullOrEmptyInt($('#OpenReaction').combobox('getValue'));//睁眼反应分数
        var languageReactionScore = isNullOrEmptyInt($('#LanguageReaction').combobox('getValue'));// 语言反应分数
        var motionResponseScore = isNullOrEmptyInt($('#MotionResponse').combobox('getValue'));// 运动反应分数
        var GCSTotal = parseInt(openReactionScore) + parseInt(languageReactionScore) + parseInt(motionResponseScore);
        $('#lblGCSPF').html(GCSTotal);//GCS评分累计评分

        ////创伤指数(TI)评分
        var positionScore = isNullOrEmptyInt(GetCheckBoxValueTotal("Position"));// 部位--分数
        var damageWayScore = isNullOrEmptyInt(GetCheckBoxValueTotal("DamageWay"));// 损伤方式--分数
        var circulationChangeScore = isNullOrEmptyInt(GetCheckBoxValueTotal("CirculationChange"));// 循环改变--分数
        var breathingChangeScore = isNullOrEmptyInt(GetCheckBoxValueTotal("BreathingChange"));// 呼吸改变--分数
        var consciousnessChangeScore = isNullOrEmptyInt(GetCheckBoxValueTotal("ConsciousnessChange"));// 意识改变--分数
        var TITotal = parseInt(positionScore) + parseInt(damageWayScore) + parseInt(circulationChangeScore) + parseInt(breathingChangeScore) + parseInt(consciousnessChangeScore);
        $('#lblTIPF').html(TITotal);//创伤指数(TI)评分累计评分


        ////Apgar评分
        //var HeartRatePerMinuteScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblMeiFenZhongXinLv")));// 每分钟心率--分数
        //var BreathingScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblHuXi")));// 呼吸--分数
        //var MuscleTensionScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblJiZhangLi")));// 肌张力--分数
        //var LaryngealReflexScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblHouFanShe")));// 喉反射--分数
        //var SkinColorScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblPiFuYanSe")));// 皮肤颜色--分数
        //var ApgarTotal = parseInt(HeartRatePerMinuteScore) + parseInt(BreathingScore) + parseInt(MuscleTensionScore) + parseInt(LaryngealReflexScore) + parseInt(SkinColorScore);
        //$('#lblApgarPF').html(ApgarTotal);//Apgar评分累计评分

        //20160329--TITotal由原来的10分上升为17分；
        if ((GCSTotal > 0 && GCSTotal <= 8) || TITotal >= 17) {
            $('#IllState').combobox('setValue', "危重");//病情分类
            $('#IllStateReport').combobox('setValue', "报");//病情预报
        }
        else {
            $('#IllState').combobox('setValue', "--请选择--");//病情分类
            $('#IllStateReport').combobox('setValue', "--请选择--");//病情预报

        }
    }

    //Apgar评分选择
    function SelectApgarScore() {

        ////Apgar评分
        var HeartRatePerMinuteScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblMeiFenZhongXinLv")));// 每分钟心率--分数
        var BreathingScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblHuXi")));// 呼吸--分数
        var MuscleTensionScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblJiZhangLi")));// 肌张力--分数
        var LaryngealReflexScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblHouFanShe")));// 喉反射--分数
        var SkinColorScore = isNullOrEmptyInt(SplitArray(GetCheckBox("rblPiFuYanSe")));// 皮肤颜色--分数
        var ApgarTotal = parseInt(HeartRatePerMinuteScore) + parseInt(BreathingScore) + parseInt(MuscleTensionScore) + parseInt(LaryngealReflexScore) + parseInt(SkinColorScore);
        $('#lblApgarPF').html(ApgarTotal);//Apgar评分累计评分

        if ((ApgarTotal >= 0 && ApgarTotal <= 7)) {
            $('#IllState').combobox('setValue', "危重");//病情分类
            $('#IllStateReport').combobox('setValue', "报");//病情预报
        }
        else {
            $('#IllState').combobox('setValue', "--请选择--");//病情分类
            $('#IllStateReport').combobox('setValue', "--请选择--");//病情预报
        }
    }

    //3个评分
    function HidGCS(value)//GCS评分
    {
        //$("#CheckBox_GCS").attr("checked") == "checked"
        if (value == 1 || document.getElementById("CheckBox_GCS").checked == true) {
            $("#CheckBox_GCS").prop("checked", true);//GCS评分
            $('#GCSPingFen').css("display", "");
        }
        else {
            $("#CheckBox_GCS").prop("checked", false);//GCS评分
            $('#GCSPingFen').css("display", "none");
        }
    }
    function HidTI(value)//TI评分
    {
        //|| value==undefined
        if (value == 1 || document.getElementById("CheckBox_TI").checked == true) {
            $("#CheckBox_TI").prop("checked", true);//TI评分
            //$("#CheckBox_TI").prop("disabled", "disabled");
            $('#trTI1').css("display", "");
            $('#trTI2').css("display", "");
            $('#trTI3').css("display", "");
        }
        else {
            $("#CheckBox_TI").prop("checked", false);//TI评分
            //$("#CheckBox_TI").prop("disabled", "");
            $('#trTI1').css("display", "none");
            $('#trTI2').css("display", "none");
            $('#trTI3').css("display", "none");
        }
    }
    function HidApgar(value)//HidApgar评分
    {
        if (value == 1 || document.getElementById("CheckBox_Apgar").checked == true) {
            $("#CheckBox_Apgar").prop("checked", true);//GCS评分
            $('#trApgar1').css("display", "");
            $('#trApgar2').css("display", "");
            $('#trApgar3').css("display", "");
        }
        else {
            $("#CheckBox_Apgar").prop("checked", false);//GCS评分
            $('#trApgar1').css("display", "none");
            $('#trApgar2').css("display", "none");
            $('#trApgar3').css("display", "none");
        }
    }

    //控制心电图印象其他、初步印象其他显示还是隐藏
    function HidInstrumentalExamination() {
        var ECGImpressionValue = $('#ECGImpression').val();//心电图印象
        if (ECGImpressionValue.indexOf("其他") >= 0) {
            $('#spanECGImpressionSupplement').css("display", "");//显示--心电图印象其他文本框
        }
        else {
            $('#spanECGImpressionSupplement').css("display", "none");//隐藏--心电图印象其他文本框
            $('#ECGImpressionSupplement').val("");//清空
        }

        var ECGImpressionRetestIValue = $('#ECGImpressionRetestI').val();//心电图印象复查1
        if (ECGImpressionRetestIValue.indexOf("其他") >= 0) {
            $('#spanECGImpressionRetestISupplement').css("display", "");//显示--心电图印象复查1其他
        }
        else {
            $('#spanECGImpressionRetestISupplement').css("display", "none");//隐藏--心电图印象复查1其他
            $('#ECGImpressionRetestISupplement').val("");//清空
        }

        var ECGImpressionRetestIIValue = $('#ECGImpressionRetestII').val();//心电图印象复查2
        if (ECGImpressionRetestIIValue.indexOf("其他") >= 0) {
            $('#spanECGImpressionRetestIISupplement').css("display", "");//显示--心电图印象复查2其他
        }
        else {
            $('#spanECGImpressionRetestIISupplement').css("display", "none");//隐藏--心电图印象复查2其他
            $('#ECGImpressionRetestIISupplement').val("");//清空
        }
        //心电图印象只要有一个有值就显示“心电图印象其他行”
        if (ECGImpressionValue.indexOf("其他") >= 0 || ECGImpressionRetestIValue.indexOf("其他") >= 0 || ECGImpressionRetestIIValue.indexOf("其他") >= 0) {
            $('#trECGImpressionsSupplement').css("display", "");//隐藏--心电图印象其他行
        }
        else
            $('#trECGImpressionsSupplement').css("display", "none");//隐藏--心电图印象其他行

        var SymptomPendingInvestigationValue = $('#SymptomPendingInvestigation').val();//初步印象--症状待查
        if (SymptomPendingInvestigationValue.indexOf("其他") >= 0) {
            $('#spanSymptomPendingInvestigationSupplement').css("display", "");//显示--初步印象--症状待查其他
        }
        else {
            $('#spanSymptomPendingInvestigationSupplement').css("display", "none");//隐藏--初步印象--症状待查其他
            $('#SymptomPendingInvestigationSupplement').val("");//清空初步印象--症状待查其他
        }

        var PrimaryDiagnosesValue = $('#PrimaryDiagnoses').val();//初步印象
        if (PrimaryDiagnosesValue.indexOf("其他") >= 0) {
            $('#spanPrimaryDiagnosesSupplement').css("display", "");//显示--初步印象其他
        }
        else {
            $('#spanPrimaryDiagnosesSupplement').css("display", "none");//隐藏--初步印象其他
            $('#PrimaryDiagnosesSupplement').val("");//清空初步印象其他
        }
        //初步印象只要有一个有值就显示“初步印象其他行”
        if (SymptomPendingInvestigationValue.indexOf("其他") >= 0 || PrimaryDiagnosesValue.indexOf("其他") >= 0) {
            $('#trPrimaryDiagnosesSupplement').css("display", "");//隐藏--初步印象其他行
        }
        else
            $('#trPrimaryDiagnosesSupplement').css("display", "none");//隐藏--初步印象其他行

        //2022-10-11 zch 病情分类为"呼吸心跳停止" 必填首次心电图时间和末次心电图时间 //add2024-08-16 plq移植
        var IllStateValue = $('#IllState').combobox('getValue');//病情分类
        if (IllStateValue == "呼吸心跳停止" && ECGImpressionValue != "" && ECGImpressionValue != "拒查" && ECGImpressionValue != "未查") {
            $('#trECGImpressionsTime').css("display", "");//显示行：心电图时间
        } else
            $('#trECGImpressionsTime').css("display", "none");//隐藏行

        //2024-03-04 zch //add2024-08-16 plq移植
        if (NotSufficientRevivingReason != "")
            $('#spanNotSufficientRevivingReason').css("display", "");
        else
            $('#spanNotSufficientRevivingReason').css("display", "none");
        if (NotSufficientRevivingReason == "其他")
            $('#spanNotSufficientRevivingReasonSupplement').css("display", "");
        else
            $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
    }

    //选择心脏骤停可能原因
    function selectCardiacArrestReason() {
        var value = $('#CardiacArrestReason').combobox('getValue');
        if (value == "其他") {
            $('#tdCardiacArrestReasonSupplement').css("color", "red");
        }
        else if (value != "其他") {
            $('#tdCardiacArrestReasonSupplement').css("color", "Black");//
            //$('#CardiacArrestReasonSupplement').val("");// 清空--心脏骤停可能原因补充说明
        }
    }

    //心肺复苏，选择成功后显示下面填写信息
    function HidXinFeiFuShu() {
        var a = document.getElementById("CPRSelect");
        //var b = document.getElementById("HidAlarmEventType").value;
        //for (var i = 0; i < a.length; i++) {
        if (a.checked == true) {
            //if (a[i].defaultValue == "ROSC") {
            $('#Tr34').css("display", "");
            $('#Tr35').css("display", "");
            $('#Tr36').css("display", "");
            $('#Tr37').css("display", "");
            $('#Tr38').css("display", "");
            IsShowAuditSpotChecks();
            //if (b == "救治") {
            //$('#Tr39').css("display", "");
            //$('#Tr40').css("display", "");
            //}
        }
        else {
            $('#Tr34').css("display", "none");
            $('#Tr35').css("display", "none");
            $('#Tr36').css("display", "none");
            $('#Tr37').css("display", "none");
            $('#Tr38').css("display", "none");
            //$('#trDoctorFollowUp').css("display", "none");//回访
            $('#Tr39').css("display", "none");
            $('#Tr40').css("display", "none");
        }
        //}
        //}
    }

    //根据BP文本框自动计算kPa值
    function CalculationkPa(BP) {
        if (BP == 'BP1') {
            var BP1 = $('#tBP1').val();
            if (BP1 == "") {
                BP1 = 0;
            }
            $('#kPa1').numberbox('setValue', (BP1 / 7.5).toFixed(2));
        }
        if (BP == 'BP2') {
            var BP2 = $('#tBP2').val();
            if (BP2 == "") {
                BP2 = 0;
            }
            $('#kPa2').numberbox('setValue', (BP2 / 7.5).toFixed(2));
        }
    }

    //根据kPa文本框自动计算BP值
    function CalculationBP(kPa) {
        if (kPa == 'kPa1') {
            var kPa1 = $('#kPa1').val();
            if (kPa1 == "") {
                kPa1 = 0;
            }
            $('#tBP1').numberbox('setValue', (kPa1 * 7.5).toFixed(0));
        }
        if (kPa == 'kPa2') {
            var kPa2 = $('#kPa2').val();
            if (kPa2 == "") {
                kPa2 = 0;
            }
            $('#tBP2').numberbox('setValue', (kPa2 * 7.5).toFixed(0));
        }
    }

    //抢救类型：选择“小抢救”
    function onClickRescueType() {
        var RescueType = isNullOrEmptyString(SplitArray(GetCheckBox("RescueType")));// 抢救类型（救治记录）
        //20170217--小抢救修改为“心肺复苏”
        if (RescueType == "心肺复苏") {
            $('#spanCheckXFFS').css("display", "");//显示心肺复苏勾选
        }
        else {
            $("#CheckBox_XFFS").prop("checked", false);//去掉心肺复苏勾选
            $('#spanCheckXFFS').css("display", "none");
            $('#RescueXFFSMould').combobox('setValue', ""); //清空心肺复苏模板选择
            $('#spanRescueXFFSMould').css("display", "none");//隐藏心肺复苏模板选择
        }
    }
    //勾选救治记录的“心肺复苏”
    function RescueXFFS() {
        if (document.getElementById("CheckBox_XFFS").checked == true) {
            $('#spanRescueXFFSMould').css("display", "");
        }
        else {
            $('#RescueXFFSMould').combobox('setValue', ""); //清空心肺复苏模板选择
            $('#spanRescueXFFSMould').css("display", "none");//隐藏心肺复苏模板选择
        }
    }

    //主诉改变后执行，解决：在IE下easyui-textbox控件，如果标点未离开，去操作其他程序，再回来后文本框内容被清除
    function alarmReason() {
        if ($('#tAlarmReason').textbox('getValue') == "") {

            $('#tAlarmReason').textbox('setValue', $('#tAlarmReasons').val());//主诉
        }
        else {
            $('#tAlarmReason').textbox('setValue', $('#tAlarmReason').textbox('getValue'));//主诉
            $('#tAlarmReasons').val($('#tAlarmReason').textbox('getValue'));

            $('#tAlarmReason').textbox('setValue', $('#tAlarmReasons').val());//主诉
        }
    }
    //现病史改变后执行，解决：在IE下easyui-textbox控件，如果标点未离开，去操作其他程序，再回来后文本框内容被清除
    function historyOfPresentIllness() {
        if ($('#tHistoryOfPresentIllness').textbox('getValue') == "") {

            $('#tHistoryOfPresentIllness').textbox('setValue', $('#HidHistoryOfPresentIllness').val());//现病史
        }
        else {
            $('#tHistoryOfPresentIllness').textbox('setValue', $('#tHistoryOfPresentIllness').textbox('getValue'));//现病史
            $('#HidHistoryOfPresentIllness').val($('#tHistoryOfPresentIllness').textbox('getValue'));

            $('#tHistoryOfPresentIllness').textbox('setValue', $('#HidHistoryOfPresentIllness').val());//现病史
        }

    }
    //其他必要记录改变后执行，解决：在IE下easyui-textbox控件，如果标点未离开，去操作其他程序，再回来后文本框内容被清除
    function otherNecessaryRecord() {
        if ($('#tOtherNecessaryRecord').textbox('getValue') == "") {

            $('#tOtherNecessaryRecord').textbox('setValue', $('#tOtherNecessaryRecords').val());//其他必要记录
        }
        else {
            $('#tOtherNecessaryRecord').textbox('setValue', $('#tOtherNecessaryRecord').textbox('getValue'));//其他必要记录
            $('#tOtherNecessaryRecords').val($('#tOtherNecessaryRecord').textbox('getValue'));

            $('#tOtherNecessaryRecord').textbox('setValue', $('#tOtherNecessaryRecords').val());//其他必要记录
        }

    }
    //20151204"心肺复苏中心审核不通过原因"改变后执行，解决：在IE下easyui-textbox控件，如果标点未离开，去操作其他程序，再回来后文本框内容被清除
    function onchangeTCenterNotThroughReason() {
        if ($('#tCenterNotThroughReason').textbox('getValue') == "") {

            $('#tCenterNotThroughReason').textbox('setValue', $('#tCenterNotThroughReasons').val());//心肺复苏中心审核不通过原因

        }
        else {
            $('#tCenterNotThroughReason').textbox('setValue', $('#tCenterNotThroughReason').textbox('getValue'));//心肺复苏中心审核不通过原因
            $('#tCenterNotThroughReasons').val($('#tCenterNotThroughReason').textbox('getValue'));

            $('#tCenterNotThroughReason').textbox('setValue', $('#tCenterNotThroughReasons').val());//心肺复苏中心审核不通过原因
        }

    }
    //20151204"分中心抽查备注"改变后执行，解决：在IE下easyui-textbox控件，如果标点未离开，去操作其他程序，再回来后文本框内容被清除
    function tsubCenterSpotChecksRmark() {
        if ($('#tSubCenterSpotChecksRmark').textbox('getValue') == "") {

            $('#tSubCenterSpotChecksRmark').textbox('setValue', $('#tSubCenterSpotChecksRmarks').val());//分中心抽查备注
        }
        else {
            $('#tSubCenterSpotChecksRmark').textbox('setValue', $('#tSubCenterSpotChecksRmark').textbox('getValue'));//分中心抽查备注
            $('#tSubCenterSpotChecksRmarks').val($('#tSubCenterSpotChecksRmark').textbox('getValue'));

            $('#tSubCenterSpotChecksRmark').textbox('setValue', $('#tSubCenterSpotChecksRmarks').val());//分中心抽查备注
        }

    }
    //20151204"中心抽查备注"改变后执行，解决：在IE下easyui-textbox控件，如果标点未离开，去操作其他程序，再回来后文本框内容被清除
    function tcenterSpotChecksRmark() {
        if ($('#tCenterSpotChecksRmark').textbox('getValue') == "") {

            $('#tCenterSpotChecksRmark').textbox('setValue', $('#tCenterSpotChecksRmarks').val());//分中心抽查备注
        }
        else {
            $('#tCenterSpotChecksRmark').textbox('setValue', $('#tCenterSpotChecksRmark').textbox('getValue'));//分中心抽查备注
            $('#tCenterSpotChecksRmarks').val($('#tCenterSpotChecksRmark').textbox('getValue'));

            $('#tCenterSpotChecksRmark').textbox('setValue', $('#tCenterSpotChecksRmarks').val());//分中心抽查备注
        }

    }
    //20151124增加判断分中心抽查结果选择后
    function selectSubCenterSpotChecksResult() {
        var value = isNullOrEmptyString(SplitArray(GetCheckBox("SubCenterSpotChecksResult")));
        //20161129--不合格修改为未通过
        if (value == "未通过") {
            $('#spanSubCenterSpotChecksUnqualifiedReason').css("display", "");//显示：分中心不合格原因
        }
        else {
            $('#spanSubCenterSpotChecksUnqualifiedReason').css("display", "none");//隐藏：分中心不合格原因
            $('#SubCenterSpotChecksUnqualifiedReason').combobox('setValue', "--请选择--");//分中心抽查结果不合格原因
        }
    }

    //20151124增加判断中心抽查结果选择后
    function selectCenterSpotChecksResult() {
        var value = SplitArray(GetCheckBox("CenterSpotChecksResult"));
        //20161129--不合格修改为未通过
        if (value == "未通过") {
            $('#spanCenterSpotChecksUnqualifiedReason').css("display", "");//显示：中心不合格原因
        }
        else {
            $('#spanCenterSpotChecksUnqualifiedReason').css("display", "none");//隐藏：中心不合格原因
            $('#CenterSpotChecksUnqualifiedReason').combobox('setValue', "--请选择--");//中心抽查结果不合格原因

        }
    }
    //20151125增加判断"通知参加本月病历小讲课"选择后
    function SelectNoticeAttendNursingLectures() {
        var value = SplitArray(GetCheckBox("NoticeAttendNursingLectures"));//
        if (value == "True") {
            $('#tdActualAttendNursingLectures').css("display", "");//显示：实际参加病历小讲课
        }
        else {
            $('#tdActualAttendNursingLectures').css("display", "none");//隐藏：实际参加病历小讲课
            unCheckBoxAll("ActualAttendNursingLectures", ""); //清空--实际参加病历小讲课--20151125
        }
        SelectActualAttendNursingLectures();
        SelectFillNoticeAttendNursingLectures();
        SelectFillActualAttendNursingLectures();
        SelectFill2NoticeAttendNursingLectures();

    }
    //20151125增加判断"实际参加病历小讲课"选择后
    function SelectActualAttendNursingLectures() {
        var value1 = SplitArray(GetCheckBox("ActualAttendNursingLectures"));//
        if (value1 == "缺席参加") {
            $('#trFillNoticeAttendNursingLectures').css("display", "");//显示：补通知参加病历小讲课
        }
        else {
            $('#trFillNoticeAttendNursingLectures').css("display", "none");//隐藏：补通知参加病历小讲课
            unCheckBoxAll("FillNoticeAttendNursingLectures", ""); //清空--补通知参加本月病历小讲课--20151125

        }
        SelectFillNoticeAttendNursingLectures();
        SelectFillActualAttendNursingLectures();
        SelectFill2NoticeAttendNursingLectures();

    }
    //20151125增加判断"补通知参加病历小讲课"选择后
    function SelectFillNoticeAttendNursingLectures() {
        var value2 = SplitArray(GetCheckBox("FillNoticeAttendNursingLectures"));//
        if (value2 == "True") {
            $('#tdFillActualAttendNursingLectures').css("display", "");//显示：补实际参加病历小讲课
        }
        else {
            $('#tdFillActualAttendNursingLectures').css("display", "none");//隐藏：补实际参加病历小讲课
            unCheckBoxAll("FillActualAttendNursingLectures", ""); //清空--补实际参加病历小讲课--20151125
        }
        SelectFillActualAttendNursingLectures();
        SelectFill2NoticeAttendNursingLectures();

    }
    //20151209增加判断"补实际参加病历小讲课"选择后
    function SelectFillActualAttendNursingLectures() {
        var value1 = SplitArray(GetCheckBox("FillActualAttendNursingLectures"));//
        if (value1 == "缺席参加") {
            $('#trFill2NoticeAttendNursingLectures').css("display", "");//显示：补2通知参加病历小讲课
        }
        else {
            $('#trFill2NoticeAttendNursingLectures').css("display", "none");//隐藏：补2通知参加病历小讲课
            unCheckBoxAll("Fill2NoticeAttendNursingLectures", ""); //清空--补2通知参加本月病历小讲课--

        }
        SelectFill2NoticeAttendNursingLectures();

    }
    //20151209增加判断"补通知参加病历小讲课"选择后
    function SelectFill2NoticeAttendNursingLectures() {
        var value2 = SplitArray(GetCheckBox("Fill2NoticeAttendNursingLectures"));//
        if (value2 == "True") {
            $('#tdFill2ActualAttendNursingLectures').css("display", "");//显示：补2实际参加病历小讲课
        }
        else {
            $('#tdFill2ActualAttendNursingLectures').css("display", "none");//隐藏：补2实际参加病历小讲课
            unCheckBoxAll("Fill2ActualAttendNursingLectures", ""); //清空--补2实际参加病历小讲课--
        }

    }

    ///比较2个时间
    //如果前一个时间比后一个时间早，返回true  ,其他返回false
    function compareTimecharge(date1, date2) {
        if (date1 > date2) {
            return false;
        } else if (date1 < date2) {
            return true;
        } else {
            return false;
        }
    }

    //出车时间、到达现场、离开现场和到达时间，有变动后显示补充文本框-20160120
    function TimeChange(value) {
        if (value == 1) {
            var DrivingTime = isNullOrEmptyString($('#DrivingTime').datetimebox('getValue').replace(/-/g, "/"));//出车时间
            var lblDrivingTime = $('#lblDrivingTime').html().replace(/-/g, "/");

            if (DrivingTime != '') {
                DrivingTime = Date.parse(DrivingTime);//
            }
            if (lblDrivingTime != '') {
                lblDrivingTime = Date.parse(lblDrivingTime);//
            }
            if (DrivingTime != lblDrivingTime) {
                //$('#lblDrivingTimeSupplement').css("display", "");//显示：
                $('#lblDrivingTimeSupplement').css("color", "red");
                $('#DrivingTimeSupplement').combobox('enable');//启用--出车时间补充20160301
            }
            else {
                //$('#lblDrivingTimeSupplement').css("display", "none");//隐藏：
                $('#lblDrivingTimeSupplement').css("color", "Black");
                $('#DrivingTimeSupplement').combobox('disable');//禁用--出车时间补充20160301
                $('#DrivingTimeSupplement').combobox('setValue', "--请选择--");//出车时间补充20160301
            }
        }
        else if (value == 2) {
            var ArriveSceneTime = isNullOrEmptyString($('#ArriveSceneTime').datetimebox('getValue').replace(/-/g, "/"));//到达现场
            var lblArriveSceneTime = $('#lblArriveSceneTime').html().replace(/-/g, "/");

            if (ArriveSceneTime != '') {
                ArriveSceneTime = Date.parse(ArriveSceneTime);//
            }
            if (lblArriveSceneTime != '') {
                lblArriveSceneTime = Date.parse(lblArriveSceneTime);//
            }
            if (ArriveSceneTime != lblArriveSceneTime) {
                //$('#lblArriveSceneTimeSupplement').css("display", "");//显示：
                $('#lblArriveSceneTimeSupplement').css("color", "red");
                $('#ArriveSceneTimeSupplement').combobox('enable');//启用--到达现场补充20160301
            }
            else {
                //$('#lblArriveSceneTimeSupplement').css("display", "none");//隐藏：
                $('#lblArriveSceneTimeSupplement').css("color", "Black");
                $('#ArriveSceneTimeSupplement').combobox('disable');//禁用--到达现场补充20160301
                $('#ArriveSceneTimeSupplement').combobox('setValue', "--请选择--");//到达现场补充20160301
            }
        }
        else if (value == 3) {
            var LeaveSceneTime = isNullOrEmptyString($('#LeaveSceneTime').datetimebox('getValue').replace(/-/g, "/"));//离开现场
            var lblLeaveSceneTime = $('#lblLeaveSceneTime').html().replace(/-/g, "/");

            if (LeaveSceneTime != '') {
                LeaveSceneTime = Date.parse(LeaveSceneTime);//
            }
            if (lblLeaveSceneTime != '') {
                lblLeaveSceneTime = Date.parse(lblLeaveSceneTime);//
            }
            if (LeaveSceneTime != lblLeaveSceneTime) {
                //$('#lblLeaveSceneTimeSupplement').css("display", "");//显示：
                $('#lblLeaveSceneTimeSupplement').css("color", "red");
                $('#LeaveSceneTimeSupplement').combobox('enable');//启用--离开现场补充20160301
            }
            else {
                //$('#lblLeaveSceneTimeSupplement').css("display", "none");//隐藏：
                $('#lblLeaveSceneTimeSupplement').css("color", "Black");
                $('#LeaveSceneTimeSupplement').combobox('disable');//禁用--离开现场补充20160301
                $('#LeaveSceneTimeSupplement').combobox('setValue', "--请选择--");//离开现场补充20160301
            }
        }
        else if (value == 4) {
            var ArriveDestinationTime = isNullOrEmptyString($('#ArriveDestinationTime').datetimebox('getValue').replace(/-/g, "/"));//到达时间
            var lblArriveDestinationTime = $('#lblArriveDestinationTime').html().replace(/-/g, "/");

            if (ArriveDestinationTime != '') {
                ArriveDestinationTime = Date.parse(ArriveDestinationTime);//
            }
            if (lblArriveDestinationTime != '') {
                lblArriveDestinationTime = Date.parse(lblArriveDestinationTime);//
            }
            if (ArriveDestinationTime != lblArriveDestinationTime) {
                //$('#lblArriveDestinationTimeSupplement').css("display", "");//显示：
                $('#lblArriveDestinationTimeSupplement').css("color", "red");
                $('#ArriveDestinationTimeSupplement').combobox('enable');//启用--到达时间补充20160301
            }
            else {
                //$('#lblArriveDestinationTimeSupplement').css("display", "none");//隐藏：
                $('#lblArriveDestinationTimeSupplement').css("color", "Black");
                $('#ArriveDestinationTimeSupplement').combobox('disable');//禁用--到达时间补充20160301
                $('#ArriveDestinationTimeSupplement').combobox('setValue', "--请选择--");//到达时间补充20160301
            }
        }
    }

    //选择P\R\心率\心律--20160926
    function onChangePR() {

        var tP = $('#tP').numberbox('getValue');//
        var tR = $('#tR').numberbox('getValue');//
        var HeartRate = $('#HeartRate').val();// 心率
        var HeartRhythm = isNullOrEmptyString($('#HeartRhythm').combobox('getValue'));// 心律

        if (tP == '0' || tR == '0' || HeartRate == '0' || HeartRhythm == '无') {
            $('#IllState').combobox('setValue', "呼吸心跳停止");//病情分类
        }
        else {
            $('#IllState').combobox('setValue', '--请选择--');//病情分类
        }
    }

    //20161216--自救措施选择
    function SelectSaveOneselfMeasures() {

        var value2 = SplitArray(GetCheckBox("SaveOneselfMeasures"));//
        if (value2 == "有") {
            $('#SaveOneselfMeasuresSupplement').prop('disabled', '');//启用--自救措施补充
        }
        else {
            $('#SaveOneselfMeasuresSupplement').prop('disabled', 'disabled');//禁用--自救措施补充
            $('#SaveOneselfMeasuresSupplement').val("");//清空--
        }

    }

    //打开打印页面
    function openPrint() {
        var url = '@Url.Content("~/PR/Print/PatientRecordPrint/?TaskCode=")' + encodeURIComponent(TaskCode) + '&PatientOrder=' + PatientOrder + '&AlarmeventType=' + AlarmType;//传编码

        window.open(url);
    }

    //function showDrug() {
    //    var url = "/PR/Medical/AddPatientRecordDrug/?";
    //    var $window = $('<div ></div>').html('<iframe id="AddPatientRecordDrugFrame" style="border:0px;width:100%;height:100%;" src="' + url + '" ></iframe>');

    //    $window.window({
    //        title: '用药情况:',
    //        width: 900,
    //        modal: true,
    //        shadow: true,
    //        height: 600,
    //        resizable: false,//可以调整窗口大小
    //        collapsible: false,//收缩
    //        minimizable: false,//最小化
    //        maximizable: false,//最大化
    //        style: {
    //            right: '',
    //            bottom: '',
    //            top: '100px'
    //        },
    //        onBeforeClose: function () {
    //            $window.find("iframe")[0].contentWindow.close();
    //        }

    //    });

    //    $window.window('open');
    //}

    //选择“心电图印象”
    function openECGImpression() {
        var dialog = $('#SelectECGImpression').dialog({
            title: '心电图印象(文件夹内有子目录)'
        });
        dialog.dialog('open');
        if ($('#ECGImpression').val() == "") {
            $('#HidECGImpressionIDs').val("");//清空心电图印象编码串
        }
        ECGLoad();//加载心电图印象方法
        ClearECG();
    }
    //选择“心电图印象”复查1
    function openECGImpressionRetestI() {
        var dialog = $('#SelectECGImpressionRetestI').dialog({
            title: '心电图印象复查一(文件夹内有子目录)'
        });
        dialog.dialog('open');
        if ($('#ECGImpressionRetestI').val() == "") {
            $('#HidECGImpressionRetestICodes').val("");//清空心电图印象复查1编码串
        }
        ECGImpressionRetestILoad();//加载心电图印象复查方法
        ClearECGImpressionRetestI();
    }
    //选择“心电图印象”复查2
    function openECGImpressionRetestII() {
        var dialog = $('#SelectECGImpressionRetestII').dialog({
            title: '心电图印象复查二(文件夹内有子目录)'
        });
        dialog.dialog('open');
        if ($('#ECGImpressionRetestII').val() == "") {
            $('#HidECGImpressionRetestIICodes').val("");//清空心电图印象复查2编码串
        }
        ECGImpressionRetestIILoad();//加载心电图印象复查方法
        ClearECGImpressionRetestII();
    }

    //选择“初步印象”
    function openPrimaryDiagnoses() {
        //var topnum = document.body.scrollTop + 0;
        var dialog = $('#SelectPrimaryDiagnoses').dialog({
            //top: topnum
            title: '初步印象(文件夹内有子目录)'
        });
        dialog.dialog('open');
        if ($('#PrimaryDiagnoses').val() == "") {
            $('#HidPrimaryDiagnosesIDs').val("");
            //$('#SSPrimaryDiagnoses').val("");//选择名称串
        }
        PrimaryDiagnosesLoad();//加载初步印象方法
        ClearPrimaryDiagnoses();
    }

    //选择“初步印象”--症状待查
    function openSymptomPendingInvestigation() {
        //var topnum = document.body.scrollTop + 0;
        var dialog = $('#SelectSymptomPendingInvestigation').dialog({
            //top: topnum
            title: '症状待查(文件夹内有子目录)'
        });
        dialog.dialog('open');
        if ($('#SymptomPendingInvestigation').val() == "") {
            $('#HidSymptomPendingInvestigationIDs').val("");
        }
        SymptomPendingInvestigationLoad();//加载症状待查方法
        ClearSymptom();
    }

    //心电图印象疑问20150917
    function fillECGImpressionDoubt() {
        var value = $('#ECGImpressionDoubt').val();
        if (value == "?") {
            $('#ECGImpressionDoubt').val("");
        }
        else {
            $('#ECGImpressionDoubt').val("?");
        }
    }
    //心电图印象复查1疑问20150917
    function fillECGImpressionRetestIDoubt() {
        var value = $('#ECGImpressionRetestIDoubt').val();
        if (value == "?") {
            $('#ECGImpressionRetestIDoubt').val("");
        }
        else {
            $('#ECGImpressionRetestIDoubt').val("?");
        }
    }
    //心电图印象复查2疑问20150917
    function fillECGImpressionRetestIIDoubt() {
        var hidden = document.getElementById('ButtonECGImpressionRetestIIDoubt').hidden;
        var value = $('#ECGImpressionRetestIIDoubt').val();
        if (value == "?") {
            $('#ECGImpressionRetestIIDoubt').val("");
        }
        else {
            $('#ECGImpressionRetestIIDoubt').val("?");
        }
    }

    //初步印象疑问20150917
    function fillFirstImpressionDoubt() {
        var hidden = document.getElementById('ButtonFirstImpressionDoubt').hidden;
        var value = $('#FirstImpressionDoubt').val();
        if (value == "?") {
            $('#FirstImpressionDoubt').val("");
        }
        else {
            $('#FirstImpressionDoubt').val("?");
        }
    }

    //20150918计算间隔时间（首次除颤时间-到达现场时间）
    function SelectTimeChange() {
        var startTime = FirstAcceptTime;//20160106首次受理时刻
        //var startTime = isNullOrEmptyString($('#CPRArriveSceneTime').datetimebox('getValue'));// 到达现场时间-20150918
        var endTime = isNullOrEmptyString($('#FirstDefibrillationTime').datetimebox('getValue'));// 首次除颤时间-20150918
        if (startTime != "" && endTime != "") {

            startTime = startTime.replace(/-/g, "/");
            endTime = endTime.replace(/-/g, "/");
            var date1 = Date.parse(startTime);
            var date2 = Date.parse(endTime);

            //var day = Math.ceil((date2 - date1) / (24 * 60 * 60 * 1000));
            //var minute = Math.round(((date2 - date1) / (60 * 1000)) * 100) / 100;
            var minute = Math.ceil((date2 - date1) / (60 * 1000));
            $('#IntervalTime').val(minute);

            if (minute > 200 || minute <= 0) {
                $.messager.alert('系统提示', '时间间隔：' + minute + '分钟！', 'error');
            }
        }
    }

    //2024-03-04 zch   ECGImpressionFirstTime 和 ECGImpressionLastTime 改变触发方法 //add2024-08-23 plq移植
    function SelectECGImpressionTimeChange(newValue, oldValue) {

        var ECGImpressionFirstTimeTMP = $('#ECGImpressionFirstTime').datetimebox('getValue');
        var ECGImpressionLastTimeTMP = $('#ECGImpressionLastTime').datetimebox('getValue');

        var FirstTime = new Date(Date.parse(ECGImpressionFirstTimeTMP.replace(/-/g, "/")));
        var LastTime = new Date(Date.parse(ECGImpressionLastTimeTMP.replace(/-/g, "/")));
        //2024-03-04 zch  未充分复苏原因
        var SendAddress = isNullOrEmptyString($('#SendAddress').combobox('getValue'));
        if (SendAddress != "" && SendAddress == "车到不送") {
            // 计算两个日期之间的毫秒差
            var timeDiffAbs = LastTime.getTime() - FirstTime.getTime();
            // 将毫秒差转换为分钟
            // const differenceInMinutes = differenceInMilliseconds / (1000 * 60);

            var minutes = Math.floor(timeDiffAbs / (1000 * 60));
            var seconds = Math.floor((timeDiffAbs % (1000 * 60)) / 1000);

            if (minutes < 30 && seconds < 1800) {
                $('#spanNotSufficientRevivingReason').css("display", "");
                var NotSufficientRevivingReason = $('#NotSufficientRevivingReason').combobox('getValue');
                if (NotSufficientRevivingReason == "其他") {
                    $('#spanNotSufficientRevivingReasonSupplement').css("display", "");
                } else {
                    $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
                }
            }
            else {
                $('#spanNotSufficientRevivingReason').css("display", "none");
                $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
            }
        }
    }

    //2024-03-04 zch  //add2024-08-23 plq移植
    function SelectNotSufficientRevivingReason(param) {
        var NotSufficientRevivingReason = $('#NotSufficientRevivingReason').combobox('getValue');
        if (NotSufficientRevivingReason == "其他") {
            $('#spanNotSufficientRevivingReasonSupplement').css("display", "");
        } else {
            $('#spanNotSufficientRevivingReasonSupplement').css("display", "none");
        }
    }


    var bodyMain = document.getElementById('TablePatientForm');

    //禁止复制
    bodyMain.oncopy = function () {
        return false;
    }
    //禁止粘贴
    bodyMain.onpaste = function () {
        return false;
    }

    </script>
}

<style type="text/css">
    .style8 {
        height: 22px;
    }

    .style9 {
        height: 22px;
        background-color: #F0F0F0;
    }

    .style10 {
        height: 5px;
    }

    * {
        font-size: 9pt;
    }

    .style11 {
        height: 22px;
        background-color: #CAE1FF;
        /*font-weight: bold;*/
    }

    .textbox {
        height: 20px;
        margin: 0;
        padding: 0 2px;
        box-sizing: content-box;
    }
</style>

<div id="TablePatientForm" class="easyui-layout" style="width:auto; height: auto; margin-left: auto; margin-right: auto">
    <form id="ff" method="post" action="" enctype="multipart/form-data">
        <div class="easyui-panel" title="" style="width:100%;">
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left">
                <tr>
                    <td colspan="8" style="text-align:center;height:20px;" valign="top">
                        <label id="lblPatientRecordName" style="font-size: 16px; font-weight: bold;">上海院前病案记录</label>
                    </td>
                </tr>
                <tr class="style11">
                    <td class="style10" style="width: 8%; text-align: center">
                        <input id="CheckBox_AttemperData" type="CheckBox" onclick="HidAttemperData();" />
                        <strong>★调度信息</strong>
                    </td>
                    <td class="style10" style="width:15%"></td>
                    <td class="style10" style="width:5%"></td>
                    <td class="style10" style="width:14%"></td>
                    <td class="style10" style="width:5%"></td>
                    <td class="style10" style="width:24%"></td>
                    <td class="style10" style="width:7%"></td>
                    <td class="style10" style="width:20%"></td>
                </tr>
                <tr id="trAttemperData1">
                    <td class="style9" style="text-align: center">
                        患者姓名：
                    </td>
                    <td class="style9">
                        <label id="lblName"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        性 &nbsp;别：
                    </td>
                    <td class="style9">
                        <label id="lblSex"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        年 &nbsp;龄：
                    </td>
                    <td class="style9">
                        <label id="lblAge"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        站（点）名：
                    </td>
                    <td class="style9">
                        <label id="lblStation"></label>
                    </td>
                </tr>
                <tr id="trAttemperData2">
                    <td class="style9" style="text-align: center; ">
                        呼救地址：
                    </td>
                    <td class="style9">
                        <label id="lblSceneAddress"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        发单时间：
                    </td>
                    <td class="style9">
                        <label id="lblGenerationTaskTime"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        出车时间：
                    </td>
                    <td class="style9">
                        <label id="lblDrivingTime"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        到达现场：
                    </td>
                    <td class="style9">
                        <label id="lblArriveSceneTime"></label>
                    </td>
                </tr>
                <tr id="trAttemperData3">
                    <td class="style9" style="text-align: center">
                        送往地点：
                    </td>
                    <td class="style9">
                        <label id="lblSendAddress"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        事件类型：
                    </td>
                    <td class="style9">
                        <label id="lblAlarmType"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        离开现场：
                    </td>
                    <td class="style9">
                        <label id="lblLeaveSceneTime"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        到达时间：
                    </td>
                    <td class="style9">
                        <label id="lblArriveDestinationTime"></label>
                    </td>
                </tr>
                <tr id="trAttemperData4">
                    <td class="style9" style="text-align: center">
                        急救医护：
                    </td>
                    <td class="style9">
                        <label id="lblFirstAidDoctorAndNurse"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        区&nbsp;域：
                    </td>
                    <td class="style9">
                        <label id="lblArea"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        驾驶员：
                    </td>
                    <td class="style9">
                        <label id="lblDriver"></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;担架员：<label id="lblStretcherBearers"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        患者联系方式：
                    </td>
                    <td class="style9">
                        <label id="lblHuanZheLianXiTell"></label>
                    </td>
                </tr>
                <tr id="trAttemperData5">
                    <td class="style9" style="text-align: center">
                        主&nbsp;&nbsp;诉：
                    </td>
                    <td class="style9">
                        <label id="lblAlarmReason"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        X坐标：
                    </td>
                    <td class="style9">
                        <label id="lblXCoordinate"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        Y坐标：
                    </td>
                    <td class="style9">
                        <label id="lblYCoordinate"></label>
                    </td>
                    <td class="style9" style="text-align:right">
                        联系人：
                    </td>
                    <td class="style9">
                        <label id="lblLinkPerson"></label>
                        @*<label id="lblForHelpPhone"></label>*@
                    </td>
                </tr>
                <tr>
                    <td class="style10" style="width: 7%; text-align: center"></td>
                    <td class="style10" style="width:16%"></td>
                    <td class="style10" style="width:5%"></td>
                    <td class="style10" style="width:14%"></td>
                    <td class="style10" style="width:5%"></td>
                    <td class="style10" style="width:24%"></td>
                    <td class="style10" style="width:7%"></td>
                    <td class="style10" style="width:20%"></td>
                </tr>
                <tr class="style11">
                    <td colspan="3" style="width:40%;text-align:center">
                        &nbsp;&nbsp;<label id="alarmEventTypeName" style="font-weight: bold;">事件类型</label>
                        <span id="alarmEventType">
                            <input id="Radio_alarmEventType_0" type="radio" name="alarmEventType" value="救治" checked="checked" /><label for="Radio_alarmEventType_0">救治</label>
                            <input id="Radio_alarmEventType_1" type="radio" name="alarmEventType" value="急救转院" /><label for="Radio_alarmEventType_1">急救转院</label>
                            <input id="Radio_alarmEventType_2" type="radio" name="alarmEventType" value="一般转院" /><label for="Radio_alarmEventType_2">一般转院</label>
                            <input id="Radio_alarmEventType_5" type="radio" name="alarmEventType" value="其他" /><label for="Radio_alarmEventType_5">其他</label>
                            <input id="Radio_alarmEventType_3" type="radio" name="alarmEventType" value="回家" /><label for="Radio_alarmEventType_3">回家</label>
                            <input id="Radio_alarmEventType_4" type="radio" name="alarmEventType" value="空车" /><label for="Radio_alarmEventType_4">空车</label>
                        </span>
                        <input id="HidAlarmEventType" style="width: 1px" type="hidden" />
                        <input id="HidTaskCode" type="hidden" />
                        <input id="HidPatientOrder" type="hidden" />
                        <input id="HidBeginFillPatientTime" type="hidden" />
                        <input id="HidPatientStateCode" style="width: 1px" type="hidden" />
                        <input id="HidCallOrder" style="width: 1px" type="hidden" />
                        <input id="HidMedicalStateCode" style="width: 1px" type="hidden" />
                    </td>
                    <td colspan="4" id="tdKongCheYuanYin" style="width:40%">
                        &nbsp;&nbsp;<label id="EmptyReasonName" style="color: Red;">(空车原因)</label>
                        <span id="EmptyReason" onclick="selectEmptyReason()">
                            <input id="Radio_EmptyReason_0" type="radio" name="EmptyReason" value="途中召回" /><label for="Radio_EmptyReason_0">途中召回</label>
                            <input id="Radio_EmptyReason_1" type="radio" name="EmptyReason" value="车到人走" /><label for="Radio_EmptyReason_1">车到人走</label>
                            <input id="Radio_EmptyReason_2" type="radio" name="EmptyReason" value="车到不要(未诊治)" /><label for="Radio_EmptyReason_2">车到不要(未诊治)</label>
                            <input id="Radio_EmptyReason_4" type="radio" name="EmptyReason" value="突发事件" /><label for="Radio_EmptyReason_4">突发事件</label>
                            <input id="Radio_EmptyReason_3" type="radio" name="EmptyReason" value="其他" /><label for="Radio_EmptyReason_3">其他</label>
                        </span>
                        &nbsp;&nbsp;<label id="lblEmptyReasonSupplement" style="color: Red;">补充说明</label><input id="EmptyReasonSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.EmptyReasonSupplement" type="text" style="width:25%;" data-options="validType:'length[1,50]'" />
                    </td>
                    <td id="tdIsSeePeople" style="width:20%">
                        <label id="IsSeePeopleName" style="color: Red;">(是否见到病人)</label>
                        <span id="IsSeePeople" onclick="selectIsSeePeople()">
                            <input id="Radio_IsSeePeople_0" type="radio" name="IsSeePeople" value="见人" /><label for="Radio_IsSeePeople_0">见到病人</label>
                            <input id="Radio_IsSeePeople_1" type="radio" name="IsSeePeople" value="未见人" /><label for="Radio_IsSeePeople_1">未见到病人</label>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <span id="Label_State" style="color:Red;"></span>
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left">
                <tr>
                    <td class="style10" style="width: 7%; text-align: center"></td>
                    <td class="style10" style="width:16%"></td>
                    <td class="style10" style="width:5%"></td>
                    <td class="style10" style="width:14%"></td>
                    <td class="style10" style="width:5%"></td>
                    <td class="style10" style="width:24%"></td>
                    <td class="style10" style="width:7%"></td>
                    <td class="style10" style="width:20%"></td>
                </tr>
                <tr>
                    <td id="tdName" class="style9" style="text-align: center">
                        <span class="font">患者姓名</span>
                    </td>
                    <td class="style9">
                        <input id="Name" class="easyui-validatebox textbox" style="width:60%;" value="@ViewBag.PRInfo.Name" data-options="validType:'length[2,30]'" />
                    </td>
                    <td id="tdSex" class="style9" style="text-align: center">
                        性 &nbsp;别
                    </td>
                    <td class="style9">
                        <span id="Sex" onclick="SelectSexAndAge()">
                            <input id="Sex_0" type="radio" name="Sex" value="男" /><label for="Sex_0">男</label>
                            <input id="Sex_1" type="radio" name="Sex" value="女" /><label for="Sex_1">女</label>
                            <input id="Sex_2" type="radio" name="Sex" value="不详" /><label for="Sex_2">不详</label>
                        </span>
                    </td>
                    <td id="tdAge" style="text-align: center" class="style9">
                        年 &nbsp;龄
                    </td>
                    <td class="style9">
                        <input class="easyui-numberbox textbox" id="Age" style="width:23%;" data-options="min:0,max:130,validType:'length[1,3]',onChange:function (newValue, oldValue) { SelectSexAndAge(); }" />
                        <select class="easyui-combobox" id="AgeType" style="width:65px;"></select>
                    </td>
                    <td id="tdStation" class=" style9" style="text-align: center">
                        站(点)名
                    </td>
                    <td class="style9">
                        <select class="easyui-combobox" id="Station" style="width:145px;"></select>
                    </td>
                </tr>
                <tr>
                    <td id="tdLocalAddress" class="style8" style="text-align: center">
                        呼救地址
                    </td>
                    <td colspan="3" class="style8">
                        <input id="LocalAddress" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.LocalAddress" type="text" style="width:88%;" data-options="validType:'length[1,100]'" />
                    </td>
                    <td id="tdDrivingTime" class="style8" style="text-align: center">
                        出车时间
                    </td>
                    <td class="style8">
                        <input id="DrivingTime" class="easyui-datetimebox" style="width:146px;" data-options="onChange:function (newValue, oldValue) { TimeChange(1); }" />
                        <label id="lblDrivingTimeSupplement">补充</label><select class="easyui-combobox" id="DrivingTimeSupplement" style="width:33%;"></select>
                        <input type="hidden" id="hidDrivingTimeSupplement" value="@ViewBag.PRInfo.DrivingTimeSupplement" />
                    </td>
                    <td id="tdArriveSceneTime" class="style8" style="text-align: center">
                        到达现场
                    </td>
                    <td class="style8">
                        <input id="ArriveSceneTime" class="easyui-datetimebox" style="width:146px;" data-options="onChange:function (newValue, oldValue) { TimeChange(2); }" />
                        <label id="lblArriveSceneTimeSupplement">补充</label><select class="easyui-combobox" id="ArriveSceneTimeSupplement" style="width:31%;"></select>
                        <input type="hidden" id="hidArriveSceneTimeSupplement" value="@ViewBag.PRInfo.ArriveSceneTimeSupplement" />
                    </td>
                </tr>
                <tr>
                    <td id="tdSendAddress" class="style9" style="text-align: center">
                        送往地点
                    </td>
                    <td colspan="3" class="style9">
                        <select id="SendAddress" class="easyui-combobox" style="width:75%;" data-options="validType:'length[1,100]'"></select>
                    </td>
                    <td id="tdLeaveSceneTime" class="style9" style="text-align: center">
                        离开现场
                    </td>
                    <td class="style9">
                        <input id="LeaveSceneTime" class="easyui-datetimebox" style="width:146px;" data-options="onChange:function (newValue, oldValue) { TimeChange(3); }" />
                        <label id="lblLeaveSceneTimeSupplement">补充</label><select class="easyui-combobox" id="LeaveSceneTimeSupplement" style="width:33%;"></select>
                        <input type="hidden" id="hidLeaveSceneTimeSupplement" value="@ViewBag.PRInfo.LeaveSceneTimeSupplement" />
                    </td>
                    <td id="tdArriveDestinationTime" class="style9" style="text-align: center">
                        到达时间
                    </td>
                    <td class="style9">
                        <input id="ArriveDestinationTime" class="easyui-datetimebox" style="width: 146px;" data-options="onChange:function (newValue, oldValue) { TimeChange(4); }" />
                        <label id="lblArriveDestinationTimeSupplement">补充</label><select class="easyui-combobox" id="ArriveDestinationTimeSupplement" style="width:31%;"></select>
                        <input type="hidden" id="hidArriveDestinationTimeSupplement" value="@ViewBag.PRInfo.ArriveDestinationTimeSupplement" />
                    </td>
                </tr>
                <tr>
                    <td class="style8" style="text-align: center; color: red;">
                        急救医护
                    </td>
                    <td class="style8">
                        <input id="DoctorAndNurse" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.DoctorAndNurse" type="text" style="width:60%;" data-options="validType:'length[1,25]'" />
                    </td>
                    <td class="style8" style="text-align: center">
                        带教实习
                    </td>
                    <td class="style8">
                        <input id="TeachingPractice" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.TeachingPractice" type="text" style="width:70%;" data-options="validType:'length[1,25]'" />
                    </td>
                    <td class="style8" style="text-align: center; color: red; ">
                        驾驶员
                    </td>
                    <td class="style8">
                        <input id="Driver" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.Driver" type="text" style="width:30%;" data-options="validType:'length[1,25]'" />
                        &nbsp;&nbsp;<span style="color: red;">担架员</span>&nbsp;<input id="StretcherBearers" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.StretcherBearersI" type="text" style="width:30%;" data-options="validType:'length[1,25]'" />
                    </td>
                    <td id="tdProvideMedicalHistoryPeople" class="style8" style="text-align: center">
                        供史人
                    </td>
                    <td class="style8">
                        @Html.Raw(ViewData["ProvideMedicalHistoryPeople"])

                    </td>
                </tr>
                <tr id="trJCaseTemplate">
                    <td colspan="8">
                        <div id="UpdatePanel3">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left">
                                <tr id="trJ0">
                                    <td class="style9" style="color: Red; text-align: center; width: 7%">
                                        病种分类
                                        <br />
                                        <input id="CheckBox_DiseasesClassification" name="CheckBox_DiseasesClassification" type="CheckBox" value="True" />
                                    </td>
                                    <td class="style9" style="width:64%">
                                        <input name="HidDiseasesClassification" type="hidden" value="@ViewBag.PRInfo.DiseasesClassification" id="HidDiseasesClassification" />
                                        @Html.Raw(ViewData["DiseasesClassification"])
                                    </td>
                                    <td class="style9" style="color: Red; text-align: center; width: 7%">
                                        <label id="lblDiseasesClassificationSupplement">小分类</label>
                                    </td>
                                    <td class="style9" style="width:19%">
                                        <span id="spanDiseasesClassificationSupplement">
                                            &nbsp;<select class="easyui-combobox" style="width: 149px" id="DiseasesClassificationSupplement" data-options=""></select>
                                        </span>
                                    </td>
                                </tr>
                                <tr id="trJ1">
                                    <td style="color:Red;text-align:center" class="style8">
                                        主诉
                                    </td>
                                    <td colspan="1" class="style8">
                                        <input name="tAlarmReasons" type="hidden" value="@ViewBag.PRInfo.AlarmReason" id="tAlarmReasons" />
                                        <input class="easyui-textbox" id="tAlarmReason" style="height:40px;width:91%;" value="@ViewBag.PRInfo.AlarmReason" data-options="prompt:'主要症状+持续时间',multiline:true,validType:'length[1,20]',onChange:function (newValue, oldValue) { alarmReason(); }" />
                                        @*（主要症状+持续时间）*@
                                    </td>
                                    <td class="style8" style="text-align: center;width:7%">
                                        患者联系方式
                                    </td>
                                    <td class="style8" style="width: 19%">
                                        <input id="ContactTelephone" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.ContactTelephone" style="width:123px;" data-options="validType:'length[1,14]'" />

                                    </td>
                                </tr>
                                <tr id="trJ2">
                                    <td style="color:Red;text-align:center" class="style9">
                                        现病史
                                    </td>
                                    <td colspan="3" class="style9" style="width:95%">
                                        <input name="HidHistoryOfPresentIllness" type="hidden" value="@ViewBag.PRInfo.HistoryOfPresentIllness" id="HidHistoryOfPresentIllness" />
                                        @*2018-12-11 zch*@

                                        <input class="easyui-textbox" id="tHistoryOfPresentIllness" style="height: 60px; width: 75%;" value="@ViewBag.PRInfo.HistoryOfPresentIllness" data-options="prompt:'发病情况/诱因、主要症状特征+持续时间、伴随症状',multiline:true,validType:'length[1,300]',onChange:function (newValue, oldValue) { historyOfPresentIllness(); }" />
                                        @*（发病情况/诱因、主要症状特征+持续时间、伴随症状、自救措施）*@
                                        <a class="easyui-linkbutton" id="btnClearAlarmReason" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="clearAlarmReason()">清空主诉/现病史</a>
                                    </td>
                                </tr>
                                <tr id="trJ3">
                                    <td style="color: Red; text-align: center" class="style8">
                                        自救措施
                                    </td>
                                    <td colspan="1" class="style8">
                                        <span id="SaveOneselfMeasures">
                                            <input id="rblSaveOneselfMeasures_0" type="radio" name="SaveOneselfMeasures" value="无" checked="checked" /><label for="rblSaveOneselfMeasures_0">无</label>
                                            <input id="rblSaveOneselfMeasures_1" type="radio" name="SaveOneselfMeasures" value="有" /><label for="rblSaveOneselfMeasures_1">有</label>
                                        </span>
                                        <input class="easyui-validatebox textbox" id="SaveOneselfMeasuresSupplement" style="width: 72.5%;" value="@ViewBag.PRInfo.SaveOneselfMeasuresSupplement" data-options="validType:'length[1,300]'" />
                                    </td>
                                    <td style="color: Red; text-align: center" class="style8">
                                        是否为电话沟通
                                    </td>
                                    <td class="style8">
                                        <span id="IFMedicalGuide">
                                            <input id="Radio_IFMedicalGuide_0" type="radio" name="IFMedicalGuide" value="True" /><label for="Radio_IFMedicalGuide_0">是</label>
                                            <input id="Radio_IFMedicalGuide_1" type="radio" name="IFMedicalGuide" value="False" /><label for="Radio_IFMedicalGuide_1">否</label>
                                        </span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr id="trJAnamnesisllnessHistory">
                    <td class="style9" style="color: Red; text-align: center">
                        既往病史
                    </td>
                    <td colspan="7" class="style9">
                        @Html.Raw(ViewData["PastMedicalHistory"])
                    </td>
                </tr>
                <tr id="trJAnamnesisllnessHistoryBuChong">
                    <td class="style8" style="text-align: center">
                        既往病史的<br />补充说明
                    </td>
                    <td colspan="7" class="style8">
                        <input id="PastMedicalHistorySupplement" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.PastMedicalHistorySupplement" type="text" style="width:89%;" data-options="validType:'length[1,100]'" />
                    </td>
                </tr>
                <tr id="trTransferIllnessRecord" class="style11">
                    <td colspan="7" style="font-weight: bold;height:22px; ">
                        @*<img src="../Images/item_point.gif" />*@
                        ★转(出)院病情记录&nbsp;
                    </td>
                    <td colspan="1"></td>
                </tr>
                <tr id="trDischargeDiagnosis">
                    <td id="tdDischargeDiagnosis" style="color: Red; text-align: center">
                        转出院诊断
                    </td>
                    <td colspan="7">
                        <input id="DischargeDiagnosis" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.DischargeDiagnosis" style="width:88%;" data-options="prompt:'(100字以内,含标点)',validtype:'length[1,100]'" />
                    </td>
                </tr>
                <tr id="trMainTreatmentMeasures">
                    <td id="tdMainTreatmentMeasures" style="color: Red; text-align: center" class="style9">
                        院内主要<br />治疗措施
                    </td>
                    <td colspan="7" class="style9">
                        <input id="HospitalMeasuresTreatment" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.HospitalMeasuresTreatment" style="width:88%;" data-options="validType:'length[1,100]'" />
                    </td>
                </tr>
                <tr id="trPatientsSymptoms">
                    <td style="text-align: center">
                        目前患者症状
                    </td>
                    <td colspan="7">
                        <input id="AtPresentPatientSymptom" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.AtPresentPatientSymptom" type="text" style="width:88%;" data-options="validType:'length[1,100]'" />
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left" id="tableTiJian" bordercolor="white">
                <tr class="style11">
                    <td style="width: 7%;text-align:center">
                        @*<img src="../Images/item_point.gif" />*@
                        <strong>★体检</strong>
                    </td>
                    <td colspan="7">
                        <span id="tiJianChoose" onclick="SelectTiJian()">
                            <input id="Radio_tiJianChoose_0" value="请选择" name="tiJianChoose" type="radio" checked="checked" /><label for="Radio_tiJianChoose_0">请选择</label>
                            <input id="Radio_tiJianChoose_1" value="正常" name="tiJianChoose" type="radio" /><label for="Radio_tiJianChoose_1">正常</label>
                            <input id="Radio_tiJianChoose_2" value="拒查" name="tiJianChoose" type="radio" /><label for="Radio_tiJianChoose_2">拒查</label>
                            @*<input id="Radio_tiJianChoose_0" value="请选择" name="tiJianChoose" type="radio" onclick="javascript: setTimeout('selctRadioButton(\'tiJianChoose\',\'0\')', 0)" checked="checked" />请选择
                                <input id="Radio_tiJianChoose_1" value="正常" name="tiJianChoose" type="radio" onclick="javascript: setTimeout('selctRadioButton(\'tiJianChoose\',\'1\')', 0)" />正常
                                <input id="Radio_tiJianChoose_2" value="拒查" name="tiJianChoose" type="radio" onclick="javascript: setTimeout('selctRadioButton(\'tiJianChoose\',\'2\')', 0)" />拒查*@
                        </span>
                    </td>
                </tr>
                <tr>
                    <td style="color: Red; width: 7%; text-align: center" class="style9">
                        T
                    </td>
                    <td style=" width: 16%;" class="style9">
                        <select class="easyui-combobox" id="TChoose" style="width:65px;"></select>
                        <input id="tT" class="easyui-numberbox textbox" type="text" onkeyup="" style="width:40px;" data-options="precision:1,validType:'length[1,5]'" />℃
                    </td>
                    <td style="color: Red; width: 6%; text-align: center" class="style9">
                        P
                    </td>
                    <td style="width: 21%;" class="style9">
                        <select class="easyui-combobox" id="PChoose" style="width:65px;"></select>
                        <input id="tP" class="easyui-numberbox textbox" type="text" style="width:40px;" data-options="min:0,max:599,validType:'length[1,3]',onChange: function(newVal, oldVal){ onChangePR();}" />
                        次/分
                    </td>
                    <td style="color: Red; width: 2%; text-align: center" class="style9">
                        R
                    </td>
                    <td style="width: 15%; " class="style9">
                        <select class="easyui-combobox" id="RChoose" style="width:65px;"></select>
                        <input id="tR" class="easyui-numberbox textbox" type="text" style="width:41px;" data-options="min:0,max:59,validType:'length[1,2]',onChange: function(newVal, oldVal){ onChangePR();}" />
                        次/分
                    </td>
                    <td style="color: Red; width: 2%; text-align: center" class="style9">
                        BP
                    </td>
                    <td style="width: 31%;" class="style9">
                        <select class="easyui-combobox" id="BP" style="width:65px;"></select>
                        <input id="tBP1" class="easyui-numberbox textbox" type="text" style="width:45px;" data-options="min:0,max:299,precision:0,validType:'length[1,3]',onChange: function(newVal, oldVal){ CalculationkPa('BP1');}" />
                        /
                        <input id="tBP2" class="easyui-numberbox textbox" type="text" style="width:45px;" data-options="min:0,max:299,precision:0,validType:'length[1,3]',onChange: function(newVal, oldVal){ CalculationkPa('BP2');}" />
                        mmHg,&nbsp;<input id="kPa1" class="easyui-numberbox textbox" type="text" onkeyup="" style="width:45px;" data-options="precision:2,validType:'length[1,7]',onChange: function(newVal, oldVal){ CalculationBP('kPa1');}" />
                        /
                        <input id="kPa2" class="easyui-numberbox textbox" type="text" style="width:45px;" data-options="precision:2,validType:'length[1,7]',onChange: function(newVal, oldVal){ CalculationBP('kPa2');}" />
                        kPa
                    </td>
                </tr>
                <tr>
                    <td style="color: Red; text-align: center">
                        意识
                    </td>
                    <td style=" width: 143px;">
                        <select class="easyui-combobox" id="Consciousness" style="width:117px;"></select>
                    </td>
                    <td style="color: Red; text-align: center">
                        <label id="lblPupil">瞳孔</label>
                    </td>
                    <td colspan="5" id="tdPupil">
                        <select class="easyui-combobox" id="Pupilla" style="width:65px;"></select>
                        &nbsp;<label id="lablPupilBuChong" style="color: Red;">补充描述：</label><input class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.PupillaSupplement" type="text" id="PupillaSupplement" style="width:20%;" data-options="validType:'length[1,100]'" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <label id="lblLightReflex" style="color: Red; ">对光反射：</label>&nbsp;<select class="easyui-combobox" id="LightReflex" style="width:80px;" data-options="editable:false,panelHeight:'auto'"></select>
                        <label id="lblLightReflexSupplement" style="color: Red;">补充描述：</label><input class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.LightReflexSupplement" type="text" id="LightReflexSupplement" style="width:25%;" data-options="validType:'length[1,100]'" />
                    </td>
                </tr>
                <tr id="trBodyFigure">
                    <td style="color: Red; text-align: center" class="style9">
                        皮肤
                    </td>
                    <td class="style9" colspan="3" style="width:44%;">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).BodyFigureModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).BodyFigure,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style9" colspan="4">
                        <span id="lblSkinSupplement">补充描述：</span>
                        <input id="SkinSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.SkinSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trHead">
                    <td class="style8" style="text-align: center">
                        <span id="lblHead">头面部</span>
                    </td>
                    <td class="style8" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).HeadModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).Head,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style8" colspan="4">
                        <span id="lblHeadSupplement">补充描述：</span>
                        <input id="HeadSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.HeadSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trNeck">
                    <td class="style9" style="text-align: center">
                        <span id="lblNeck">颈部</span>
                    </td>
                    <td class="style9" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).NeckModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).Neck,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style9" colspan="4">
                        <span id="lblNeckSupplement">补充描述：</span>
                        <input id="NeckSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.NeckSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trChest">
                    <td class="style8" style="text-align: center">
                        <span id="lblChest">胸部</span>
                    </td>
                    <td class="style8" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).ChestModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).Chest,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style8" colspan="4">
                        <span id="lblChestSupplement">补充描述：</span>
                        <input id="ChestSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.ChestSupplement" type="text" style="width:40%;" data-options="validType:'length[1,200]'" />
                        &nbsp;
                        <span id="lblChestExtrusionTest">胸廓挤压试验：</span>
                        @Html.Raw(ViewData["ChestExtrusionTest"])
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trLung">
                    <td class="style9" style="color: Red; text-align: center; ">
                        <span id="lblLung">肺脏</span>
                    </td>
                    <td class="style9" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).LungModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).Lung,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                        &nbsp;&nbsp;<span id="spanTwoLungBreathingSound"><select class="easyui-combobox" id="TwoLungBreathingSound" style="width:85px;"></select></span>
                    </td>
                    <td class="style9" colspan="4">
                        <span id="lblLungLeft">左肺：</span>&nbsp;&nbsp;&nbsp;
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).LungLeftModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).LungLeft,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                        <br />
                        <span id="lblLungRight">右肺：</span>&nbsp;&nbsp;&nbsp;
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).LungRightModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).LungRight,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                        <br />
                        <span id="lblLungsSupplement">补充描述：</span>
                        <input id="LungsSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.LungsSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trHeart">
                    <td class="style8" style="color: Red; text-align: center">
                        <span id="lblHeart">心脏</span>
                    </td>
                    <td class="style8" colspan="3">
                        <select class="easyui-combobox" id="Heart" style="width:65px;"></select>
                        <span id="lblXinLv" style="color: Red;">心率：</span>
                        <input class="easyui-numberbox textbox" value="@ViewBag.PRAppendInfo.HeartRate" type="text" id="HeartRate" style="width:60px;" data-options="precision:0,validType:'length[1,4]',onChange: function(newVal, oldVal){ onChangePR();}" />次/分
                        <span id="lblHeartRhythm" style="color: Red;">心律：</span>
                        <select class="easyui-combobox" id="HeartRhythm" style="width:80px;"></select>
                        <span id="lblHeartSouffle">杂音：</span>
                        <select class="easyui-combobox" id="HeartMurmur" style="width:75px;"></select>
                    </td>
                    <td class="style8" colspan="4">
                        <span id="lblHeartSupplement">补充描述：</span>
                        <input id="HeartSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.HeartSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trFuBu">
                    <td class="style9" style="text-align: center">
                        <span id="lblAbdomen">腹部</span>
                    </td>
                    <td class="style9" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).FuBuModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).FuBu,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style9" colspan="4">
                        <span id="lblAbdomenSupplement">补充描述：</span>
                        <input id="AbdomenSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.AbdomenSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trJiZhu">
                    <td class="style8" style="text-align: center">
                        <span id="lblSpine">脊柱</span>
                    </td>
                    <td class="style8" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).JiZhuModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).JiZhu,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style8" colspan="4">
                        <span id="lblSpineSupplement">补充描述：</span>
                        <input id="SpineSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.SpineSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trLimb">
                    <td class="style9" style="text-align: center">
                        <span id="lblLimb">四肢</span>
                    </td>
                    <td class="style9" colspan="3">
                        @Html.CheckBoxListFor(model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).LimbModels.CheckModelIDs,
                        model => (model as Anke.SHManage.Web.Areas.PR.Controllers.MedicalController.CheckViewModel).Limb,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Id,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).Name,
                        entity => (entity as Anke.SHManage.Model.M_CheckModel).IsSelected)
                    </td>
                    <td class="style9" colspan="4">
                        <span id="lblLimbsSupplement">补充描述：</span>
                        <input id="LimbsSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.LimbsSupplement" type="text" style="width:40%;" data-options="validType:'length[1,200]'" />
                        &nbsp;
                        <span id="lblPelvicExtrusionTest">骨盆挤压试验：</span>
                        <span id="PelvicExtrusionTest">
                            @Html.Raw(ViewData["PelvicExtrusionTest"])
                        </span>
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trShenJingSys">
                    <td class="style8" style="text-align: center">
                        <span id="lblNervousSystem">神经系统</span>
                    </td>
                    <td id="tdNervousSystem" class="style8" colspan="3">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <span id="spanFaceAndSpeech">
                            面部：<input id="NervousSystemFace" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.NervousSystemFace" type="text" style="width:25%;" data-options="validType:'length[1,50]'" />
                            &nbsp;&nbsp;&nbsp;&nbsp;言语：<input id="NervousSystemSpeech" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.NervousSystemSpeech" type="text" style="width:25%;" data-options="validType:'length[1,50]'" />
                        </span>
                        <br />
                        <select class="easyui-combobox" id="NervousSystem" style="width:65px;"></select>
                        <span id="spanAnimalForce">
                            肌力：左上肢<select class="easyui-combobox" style="width: 52px" id="LeftUpperExtremity" data-options="editable: false,panelHeight: 'auto'">
                                <option value="">请选择</option>
                                <option value="5">5</option>
                                <option value="4">4</option>
                                <option value="3">3</option>
                                <option value="2">2</option>
                                <option value="1">1</option>
                                <option value="0">0</option>
                            </select>级
                            左下肢<select class="easyui-combobox" style="width: 52px; " id="LeftLowerExtremity" data-options="editable: false,panelHeight: 'auto'">
                                <option value="">请选择</option>
                                <option value="5">5</option>
                                <option value="4">4</option>
                                <option value="3">3</option>
                                <option value="2">2</option>
                                <option value="1">1</option>
                                <option value="0">0</option>
                            </select>级
                            右上肢<select class="easyui-combobox" style="width: 52px; " id="RightUpperLimb" data-options="editable: false,panelHeight: 'auto'">
                                <option value="">请选择</option>
                                <option value="5">5</option>
                                <option value="4">4</option>
                                <option value="3">3</option>
                                <option value="2">2</option>
                                <option value="1">1</option>
                                <option value="0">0</option>
                            </select>级
                            右下肢<select class="easyui-combobox" style="width: 52px; " id="RightLowerLimb" data-options="editable: false,panelHeight: 'auto'">
                                <option value="">请选择</option>
                                <option value="5">5</option>
                                <option value="4">4</option>
                                <option value="3">3</option>
                                <option value="2">2</option>
                                <option value="1">1</option>
                                <option value="0">0</option>
                            </select>级
                        </span>
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <span id="spanMuscularTension">
                            肌张力：<select class="easyui-combobox" style="width:128px;" id="MuscularTension" data-options="editable: false,panelHeight: 'auto'"></select>
                        </span>
                    </td>
                    <td class="style8" colspan="4">
                        <span id="lblBabinskiSign">巴氏征：</span>&nbsp;
                        <span id="BabinskiSign">
                            @Html.Raw(ViewData["BabinskiSign"])
                        </span>
                        <br />
                        <span id="lblNervousSystemSupplement">补充描述：</span>
                        <input id="NervousSystemSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.NervousSystemSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style8">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trObstetricExamination">
                    <td class="style9" style="text-align: center">
                        <span id="lblObstetricExamination">产科检查</span>
                    </td>
                    <td class="style9" colspan="3">
                        <select class="easyui-combobox" id="ObstetricExamination" style="width:65px;"></select>
                        <span id="spanGongGao">宫高：</span><span id="lblGongGaoCartilagoEnsiformis">剑突下</span><input id="GongGaoCartilagoEnsiformis" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.GongGaoCartilagoEnsiformis" type="text" style="width:8%;" data-options="validType:'length[1,50]'" />指
                        <span id="lblGongGaoSuprapubic">耻骨上</span><input id="GongGaoSuprapubic" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.GongGaoSuprapubic" type="text" style="width:9%;" data-options="validType:'length[1,50]'" />指
                        <span id="lblGongGaoNavel">脐上</span><input id="GongGaoNavel" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.GongGaoNavel" type="text" style="width:9%;" data-options="validType:'length[1,50]'" />指
                        <span id="lblGongGaoBelowUmbilicus">脐下</span><input id="GongGaoBelowUmbilicus" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.GongGaoBelowUmbilicus" type="text" style="width:9%;" data-options="validType:'length[1,50]'" />指
                    </td>
                    <td class="style9" colspan="4">
                        <span id="lblObstetricExaminationSupplement">补充描述：</span>
                        <input id="ObstetricExaminationSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.ObstetricExaminationSupplement" type="text" style="width:85%;" data-options="validType:'length[1,200]'" />
                    </td>
                    <td class="style9">
                        &nbsp;
                    </td>
                </tr>
                <tr id="trTiJianSupplement" class="style8">
                    <td style="width: 7%; text-align: center">
                        <span id="lblTiJianSupplement">体检补充描述</span>
                    </td>
                    <td colspan="7" class="style8">
                        <input id="PhysicalExaminationSupplement" class="easyui-validatebox textbox" style="width:89%;" value="@ViewBag.PRAppendInfo.PhysicalExaminationSupplement" data-options="validType:'length[1,200]'" />

                    </td>
                </tr>
                <tr id="trQiTaBiYaoJiLu" class="style8">
                    <td style="color: Red; width: 7%; text-align: center">
                        <strong>其他必要记录</strong>
                    </td>
                    <td colspan="7" class="style8">
                        <input id="tOtherNecessaryRecords" type="hidden" value="@ViewBag.PRAppendInfo.OtherNecessaryRecord" />
                        <input id="tOtherNecessaryRecord" class="easyui-textbox" type="text" style="width:89%;height:60px" value="@ViewBag.PRAppendInfo.OtherNecessaryRecord" data-options="multiline:true,validType:'length[1,200]',onChange:function (newValue, oldValue) { otherNecessaryRecord(); }" />

                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left" id="tbPF" bordercolor="white">
                <tr class="style11">
                    <td colspan="4" style="width:60%">
                        <input name="CheckBox_GCS" type="CheckBox" id="CheckBox_GCS" onclick="HidGCS();" />
                        <b>★昏迷指数(GCS)评分</b>
                    </td>
                    <td style="text-align: center;width:6%">
                        累计评分
                    </td>
                    <td colspan="3" width="33%">
                        <label id="lblGCSPF">0</label>
                    </td>
                </tr>
                <tr id="GCSPingFen">
                    <td style="width:7%;text-align:center" class="style9">
                        <span id="lblOpenReaction">睁眼反应</span>
                    </td>
                    <td class="style9" style="width:25%">
                        <select class="easyui-combobox" id="OpenReaction" style="width:45%" data-options="editable:false,panelHeight:'auto',onSelect: function (param) { CalculationScore(); }">
                            <option value="0">--请选择--</option>
                            <option value="4">自动睁眼(4)</option>
                            <option value="3">呼之睁眼(3)</option>
                            <option value="2">刺痛加呼之睁眼(2)</option>
                            <option value="1">不睁眼(1)</option>

                        </select>
                    </td>
                    <td class="style9" style="text-align:center;width:8%">
                        <span id="lblLanguageReaction">语言反应</span>
                    </td>
                    <td class="style9" style="width:20%">
                        <select class="easyui-combobox" id="LanguageReaction" style="width:45%" data-options="editable:false,panelHeight:'auto',onSelect: function (param) { CalculationScore(); }">
                            <option value="0">--请选择--</option>
                            <option value="5">回答切题(5)</option>
                            <option value="4">回答不切题(4)</option>
                            <option value="3">单音语言(3)</option>
                            <option value="2">呻吟声(2)</option>
                            <option value="1">不能言语(1)</option>

                        </select>
                    </td>
                    <td class="style9" style="text-align:center;width:7%">
                        <span id="lblMotionResponse">运动反应</span>
                    </td>
                    <td class="style9" colspan="3">
                        <select class="easyui-combobox" id="MotionResponse" style="width:35%" data-options="editable:false,panelHeight:'auto',onSelect: function (param) { CalculationScore(); }">
                            <option value="0">--请选择--</option>
                            <option value="6">遵嘱运动肢体(6)</option>
                            <option value="5">对疼痛能定位(5)</option>
                            <option value="4">疼痛刺激肢体回缩(4)</option>
                            <option value="3">疼痛刺激全身屈曲(3)</option>
                            <option value="2">疼痛刺激全身过伸(2)</option>
                            <option value="1">疼痛刺激无反应(1)</option>

                        </select>
                    </td>
                </tr>

                <tr class="style11">
                    <td colspan="4">
                        <input name="CheckBox_TI" type="CheckBox" id="CheckBox_TI" onclick="HidTI();" />
                        <b>★创伤指数(TI)评分</b>
                    </td>
                    <td style="text-align: center">
                        累计评分
                    </td>
                    <td colspan="3">
                        <label id="lblTIPF">0</label>
                    </td>
                </tr>
                <tr id="trTI1">
                    <td class="style9" style="text-align: center">
                        <span id="lblTIBuwei">部位</span>
                    </td>
                    <td class="style9" colspan="3">
                        <span id="lblTIPosition"></span>
                        <span id="Position" onchange="CalculationScore()">
                            <input id="chklTIBuwei_0" type="checkbox" name="Position" value="1" /><label for="chklTIBuwei_0">四肢(1)</label>
                            <input id="chklTIBuwei_1" type="checkbox" name="Position" value="3" /><label for="chklTIBuwei_1">躯背(3)</label>
                            <input id="chklTIBuwei_2" type="checkbox" name="Position" value="5" /><label for="chklTIBuwei_2">胸或腹(5)</label>
                            <input id="chklTIBuwei_3" type="checkbox" name="Position" value="6" /><label for="chklTIBuwei_3">头或颈(6)</label>
                        </span>
                    </td>
                    <td class="style9" style="text-align: center">
                        <span id="lblTISunshangfangshi">损伤方式</span>
                    </td>
                    <td class="style9" colspan="3">
                        <span id="DamageWay" onchange="CalculationScore()">
                            <input id="chklTISunshangfangshi_0" type="checkbox" name="DamageWay" value="1" /><label for="chklTISunshangfangshi_0">切割伤或挫伤(1)</label>
                            <input id="chklTISunshangfangshi_1" type="checkbox" name="DamageWay" value="3" /><label for="chklTISunshangfangshi_1">刺伤(3)</label>
                            <input id="chklTISunshangfangshi_2" type="checkbox" name="DamageWay" value="5" /><label for="chklTISunshangfangshi_2">钝挫伤(5)</label>
                            <input id="chklTISunshangfangshi_3" type="checkbox" name="DamageWay" value="6" /><label for="chklTISunshangfangshi_3">弹道伤(6)</label>
                        </span>
                    </td>
                </tr>
                <tr id="trTI2">
                    <td class="style8" style="text-align: center">
                        <span id="lblTIXunhuangaibian">循环改变</span>
                    </td>
                    <td class="style8" colspan="3">
                        <span id="CirculationChange" onchange="CalculationScore()">
                            <input id="chklTIXunhuangaibian_0" type="checkbox" name="CirculationChange" value="1" /><label for="chklTIXunhuangaibian_0">正常(1)</label>
                            <input id="chklTIXunhuangaibian_1" type="checkbox" name="CirculationChange" value="3" /><label for="chklTIXunhuangaibian_1">BP<13.3kpa(100mmhg)或p>100次/分(3)</label>
                            <input id="chklTIXunhuangaibian_2" type="checkbox" name="CirculationChange" value="5" /><label for="chklTIXunhuangaibian_2">BP<10.6kpa(80mmhg)或p>140次/分(5)</label>
                            <input id="chklTIXunhuangaibian_3" type="checkbox" name="CirculationChange" value="6" /><label for="chklTIXunhuangaibian_3">无脉搏(6)</label>
                        </span>
                    </td>
                    <td class="style8" style="text-align: center">
                        <span id="lblTIHuxigaibian">呼吸改变</span>
                    </td>
                    <td class="style8" colspan="3">
                        <span id="BreathingChange" onchange="CalculationScore()">
                            <input id="chklTIHuxigaibian_0" type="checkbox" name="BreathingChange" value="1" /><label for="chklTIHuxigaibian_0">胸痛(1)</label>
                            <input id="chklTIHuxigaibian_1" type="checkbox" name="BreathingChange" value="3" /><label for="chklTIHuxigaibian_1">呼吸困难(3)</label>
                            <input id="chklTIHuxigaibian_2" type="checkbox" name="BreathingChange" value="5" /><label for="chklTIHuxigaibian_2">发绀(5)</label>
                            <input id="chklTIHuxigaibian_3" type="checkbox" name="BreathingChange" value="6" /><label for="chklTIHuxigaibian_3">呼吸暂停(6)</label>
                        </span>
                    </td>
                </tr>
                <tr id="trTI3">
                    <td class="style9" style="text-align: center">
                        <span id="lblTIYishigaibian">意识改变</span>
                    </td>
                    <td class="style9" colspan="7">
                        <span id="ConsciousnessChange" onchange="CalculationScore()">
                            <input id="chklTIYishigaibian_0" type="checkbox" name="ConsciousnessChange" value="1" /><label for="chklTIYishigaibian_0">倦睡(1)</label>
                            <input id="chklTIYishigaibian_1" type="checkbox" name="ConsciousnessChange" value="3" /><label for="chklTIYishigaibian_1">嗜睡(3)</label>
                            <input id="chklTIYishigaibian_2" type="checkbox" name="ConsciousnessChange" value="5" /><label for="chklTIYishigaibian_2">半昏迷(5)</label>
                            <input id="chklTIYishigaibian_3" type="checkbox" name="ConsciousnessChange" value="6" /><label for="chklTIYishigaibian_3">昏迷(6)</label>
                        </span>
                    </td>
                </tr>
                <tr class="style11">
                    <td colspan="4">
                        <input name="CheckBox_Apgar" type="CheckBox" id="CheckBox_Apgar" onclick="HidApgar();" />
                        <b>★新生儿(Apgar)评分</b> &nbsp; &nbsp; &nbsp;
                    </td>
                    <td style="text-align: center">
                        累计评分
                    </td>
                    <td colspan="3">
                        <label id="lblApgarPF">0</label>
                    </td>
                </tr>
                <tr id="trApgar1">
                    <td class="style9" style="text-align: center">
                        <span id="Label3">每分钟心率</span>
                    </td>
                    <td class="style9" colspan="3">
                        <span id="rblMeiFenZhongXinLv" onchange="SelectApgarScore()">
                            <input id="rblMeiFenZhongXinLv_0" type="radio" name="rblMeiFenZhongXinLv" value="0" /><label for="rblMeiFenZhongXinLv_0">0(0)</label>
                            <input id="rblMeiFenZhongXinLv_1" type="radio" name="rblMeiFenZhongXinLv" value="1" /><label for="rblMeiFenZhongXinLv_1"><100次 />分(1)</label>
                            <input id="rblMeiFenZhongXinLv_2" type="radio" name="rblMeiFenZhongXinLv" value="2" /><label for="rblMeiFenZhongXinLv_2">≥100次/分(2)</label>
                        </span>
                    </td>
                    <td class="style9" style="text-align: center">
                        <span id="Label4">呼吸</span>
                    </td>
                    <td class="style9" colspan="3">
                        <span id="rblHuXi" onchange="SelectApgarScore()">
                            <input id="rblHuXi_0" type="radio" name="rblHuXi" value="0" /><label for="rblHuXi_0">0(0)</label>
                            <input id="rblHuXi_1" type="radio" name="rblHuXi" value="1" /><label for="rblHuXi_1">浅慢或不规则(1)</label>
                            <input id="rblHuXi_2" type="radio" name="rblHuXi" value="2" /><label for="rblHuXi_2">佳(2)</label>
                        </span>
                    </td>
                </tr>
                <tr id="trApgar2">
                    <td class="style8" style="text-align: center">
                        <span id="Label5">肌张力</span>
                    </td>
                    <td class="style8" colspan="3">
                        <span id="rblJiZhangLi" onchange="SelectApgarScore()">
                            <input id="rblJiZhangLi_0" type="radio" name="rblJiZhangLi" value="0" /><label for="rblJiZhangLi_0">松弛(0)</label>
                            <input id="rblJiZhangLi_1" type="radio" name="rblJiZhangLi" value="1" /><label for="rblJiZhangLi_1">四肢稍屈曲(1)</label>
                            <input id="rblJiZhangLi_2" type="radio" name="rblJiZhangLi" value="2" /><label for="rblJiZhangLi_2">四肢屈曲活动或好(2)</label>
                        </span>
                    </td>
                    <td class="style8" style="text-align: center">
                        <span id="Label6">喉反射</span>
                    </td>
                    <td class="style8" colspan="3">
                        <span id="rblHouFanShe" onchange="SelectApgarScore()">
                            <input id="rblHouFanShe_0" type="radio" name="rblHouFanShe" value="0" /><label for="rblHouFanShe_0">无反射(0)</label>
                            <input id="rblHouFanShe_1" type="radio" name="rblHouFanShe" value="1" /><label for="rblHouFanShe_1">有些动作(1)</label>
                            <input id="rblHouFanShe_2" type="radio" name="rblHouFanShe" value="2" /><label for="rblHouFanShe_2">咳嗽或恶心(2)</label>
                        </span>
                    </td>
                </tr>
                <tr id="trApgar3">
                    <td class="style9" style="text-align: center">
                        <span id="Label7">皮肤颜色</span>
                    </td>
                    <td class="style9" colspan="3">
                        <span id="rblPiFuYanSe" onchange="SelectApgarScore()">
                            <input id="rblPiFuYanSe_0" type="radio" name="rblPiFuYanSe" value="0" /><label for="rblPiFuYanSe_0">全身苍白(0)</label>
                            <input id="rblPiFuYanSe_1" type="radio" name="rblPiFuYanSe" value="1" /><label for="rblPiFuYanSe_1">躯干红或四肢青紫(1)</label>
                            <input id="rblPiFuYanSe_2" type="radio" name="rblPiFuYanSe" value="2" /><label for="rblPiFuYanSe_2">全身粉红(2)</label>
                        </span>
                    </td>
                    <td class="style9"></td>
                    <td class="style9" colspan="3"></td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left">
                <tr id="trEquipmentInspection" class="style11">
                    <td class="style8" style="width: 7%;text-align:left">
                        <b>★必要器械检查</b>
                    </td>
                    <td class="style8" style="width:14%"></td>
                    <td class="style8" style="width:15%"></td>
                    <td class="style8" style="width:4%"></td>
                    <td class="style8" style="width:14%"></td>
                    <td class="style8" style="width:4%"></td>
                    <td class="style8" style="width:8%"></td>
                    <td class="style8" style="width:8%"></td>
                </tr>
                <tr id="trECGImpressions">
                    <td class="style9" style="color: Red; width: 7%; text-align: center">
                        心电图印象
                    </td>
                    <td colspan="2" class="style9">
                        <select id="ECG" class="easyui-combobox" style="width:65px;"></select>
                        <input id="ECGImpression" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpression" style="background-color: #E0E0E0; width: 48%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonECGFuSelect" class="easyui-linkbutton" style="width: 40px; height: auto" onclick="openECGImpression()">选择</a>
                        <input name="HidECGImpressionNames" type="hidden" id="HidECGImpressionNames" style="width: 1px" />
                        <input name="HidECGImpressionIDs" type="hidden" id="HidECGImpressionIDs" value="@ViewBag.PRAppendInfo.ECGImpressionCodes" style="width: 1px" />

                        <input id="ECGImpressionDoubt" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionDoubt" style="background-color: #E0E0E0; width: 3%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonECGImpressionDoubt" class="easyui-linkbutton" style="width: 25px; height: auto" onclick="fillECGImpressionDoubt()"><strong>?</strong></a>
                        <input name="CheckBox_DaoLian" type="CheckBox" value="True" id="CheckBox_DaoLian" />12导联
                    </td>
                    <td class="style9">
                        <a id="ButtonECGFuCha" class="easyui-linkbutton" style="width: 60px; height: 21px">复查</a>
                    </td>
                    <td class="style9">
                        <input id="ECGImpressionRetestI" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionRetestI" style="background-color: #E0E0E0; width: 50%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonECGFuSelect1" class="easyui-linkbutton" style="width: 40px; height: auto" onclick="openECGImpressionRetestI()">选择</a>
                        <input name="HidECGImpressionRetestINames" type="hidden" id="HidECGImpressionRetestINames" style="width: 1px" />
                        <input name="HidECGImpressionRetestICodes" type="hidden" id="HidECGImpressionRetestICodes" value="@ViewBag.PRAppendInfo.ECGImpressionRetestICodes" style="width: 1px" />

                        <input id="ECGImpressionRetestIDoubt" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionRetestIDoubt" style="background-color: #E0E0E0; width: 5%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonECGImpressionRetestIDoubt" class="easyui-linkbutton" style="width: 25px; height: auto" onclick="fillECGImpressionRetestIDoubt()"><strong>?</strong></a>
                    </td>
                    <td class="style9">
                        <a id="ButtonECGFuCha2" class="easyui-linkbutton" style="width: 60px; height: 21px">复查</a>
                    </td>
                    <td id="ECGFuCha2" colspan="2" class="style9">
                        <input id="ECGImpressionRetestII" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionRetestII" style="background-color: #E0E0E0; width: 50%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonECGFuSelect2" class="easyui-linkbutton" style="width: 40px; height: auto" onclick="openECGImpressionRetestII()">选择</a>
                        <input name="HidECGImpressionRetestIINames" type="hidden" id="HidECGImpressionRetestIINames" style="width: 1px" />
                        <input name="HidECGImpressionRetestIICodes" type="hidden" id="HidECGImpressionRetestIICodes" value="@ViewBag.PRAppendInfo.ECGImpressionRetestIICodes" style="width: 1px" />

                        <input id="ECGImpressionRetestIIDoubt" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionRetestIIDoubt" style="background-color: #E0E0E0; width: 5%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonECGImpressionRetestIIDoubt" class="easyui-linkbutton" style="width: 25px; height: auto" onclick="fillECGImpressionRetestIIDoubt()"><strong>?</strong></a>
                    </td>
                </tr>
                <tr id="trECGImpressionsSupplement">
                    <td class="style8" style="color: Red; width: 7%; text-align: center">
                        心电图印象其他
                    </td>
                    <td colspan="2" class="style8">
                        <span id="spanECGImpressionSupplement">
                            <input id="ECGImpressionSupplement" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionSupplement" style=" width: 70%;" data-options="validType:'length[1,100]'" />
                        </span>
                    </td>
                    <td class="style8"></td>
                    <td class="style8">
                        <span id="spanECGImpressionRetestISupplement">
                            <input id="ECGImpressionRetestISupplement" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionRetestISupplement" style=" width: 70%;" data-options="validType:'length[1,100]'" />
                        </span>
                    </td>
                    <td class="style8"></td>
                    <td colspan="2" class="style8">
                        <span id="spanECGImpressionRetestIISupplement">
                            <input id="ECGImpressionRetestIISupplement" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.ECGImpressionRetestIISupplement" style=" width: 70%;" data-options="validType:'length[1,100]'" />
                        </span>
                    </td>
                </tr>
                <tr id="trECGImpressionsTime">
                    <td class="style8" style="color: Red; width: 7%; text-align: center">
                        首次心电图时间
                    </td>
                    <td class="style8">
                        <span id="spanECGImpressionFirstTime">
                            <input id="ECGImpressionFirstTime" class="easyui-datetimebox" style=" width: 150px;" data-options="onChange:function (newValue, oldValue) { SelectECGImpressionTimeChange(); }" />
                        </span>
                    </td>
                    <td class="style8" style="color: Red; width: 7%; text-align: right">
                        末次心电图时间
                    </td>
                    <td class="style8">
                        <span id="spanECGImpressionLastTime">
                            <input id="ECGImpressionLastTime" class="easyui-datetimebox" style=" width: 150px;" data-options="onChange:function (newValue, oldValue) { SelectECGImpressionTimeChange(); }" />
                        </span>
                    </td>
                    <td class="style8">
                        <span id="spanNotSufficientRevivingReason">
                            <span style="color: Red;">未充分复苏原因</span>
                            <select class="easyui-combobox" id="NotSufficientRevivingReason" style="width: 150px" data-options="editable:false,panelHeight:'auto',onSelect: function (param) { SelectNotSufficientRevivingReason();  }">
                                <option value="">--请选择--</option>
                                <option value="家属放弃或拒绝抢救">家属放弃或拒绝抢救</option>
                                <option value="明显不可逆死亡原因">明显不可逆死亡原因</option>
                                <option value="其他">其他</option>
                            </select>
                        </span>
                    </td>
                    <td colspan="2" class="style8">
                        <span id="spanNotSufficientRevivingReasonSupplement">
                            <span style="color: Red;">
                                其他备注
                                <input id="NotSufficientRevivingReasonSupplement" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.NotSufficientRevivingReasonSupplement" style=" width: 200px;" data-options="validType:'length[1,100]'" />
                            </span>
                        </span>
                    </td>

                </tr>
                <tr id="trBloodSugar">
                    <td class="style9" style="color: Red; width: 7%; text-align: center">
                        血糖(mmol/L)
                    </td>
                    <td colspan="2" class="style9">
                        <select id="BloodSugarSelect" class="easyui-combobox" style="width:65px;"></select>
                        <input id="BloodSugar" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.BloodSugar" type="text" style="width:115px;" data-options="validType:'length[1,30]'" />

                    </td>
                    <td class="style9">
                        <a id="ButtonBloodSugarFuCha" class="easyui-linkbutton" style="width: 60px; height: 21px">复查</a>
                    </td>
                    <td class="style9">
                        <input id="BloodSugarRetestI" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.BloodSugarRetestI" type="text" style="width:115px;" data-options="validType:'length[1,30]'" />

                    </td>
                    <td class="style9">
                        <a id="ButtonBloodSugarFuCha2" class="easyui-linkbutton" style="width: 60px; height: 21px">复查</a>
                    </td>
                    <td colspan="2" class="style9">
                        <input id="BloodSugarRetestII" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.BloodSugarRetestII" type="text" style="width:115px;" data-options="validType:'length[1,30]'" />

                    </td>
                </tr>
                <tr id="trBloodOxygen">
                    <td class="style8" style="color: Red; width: 7%; text-align: center">
                        血氧饱和度%
                    </td>
                    <td colspan="2" class="style8">
                        <select id="BloodOxygenSelect" class="easyui-combobox" style="width:65px;"></select>
                        <input id="BloodOxygen" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.BloodOxygenSaturation" type="text" style="width:115px;" data-options="validType:'length[1,30]'" />

                    </td>
                    <td class="style8">
                        <a id="ButtonBloodOxygenFuCha" class="easyui-linkbutton" style="width: 60px; height: 21px">复查</a>
                    </td>
                    <td class="style8">
                        <input id="BloodOxygenRetestI" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.BloodOxygenSaturationRetestI" type="text" style="width:115px;" data-options="validType:'length[1,30]'" />

                    </td>
                    <td class="style8">
                        <a id="ButtonBloodOxygenFuCha2" class="easyui-linkbutton" style="width: 60px; height: 21px">复查</a>
                    </td>
                    <td colspan="2" class="style8">
                        <input id="BloodOxygenRetestII" class="easyui-validatebox textbox" value="@ViewBag.PRAppendInfo.BloodOxygenSaturationRetestII" type="text" style="width:115px;" data-options="validType:'length[1,30]'" />

                    </td>
                </tr>
                <tr id="trPrimaryDiagnoses">
                    <td class="style9" style="color: Red; width: 7%; text-align: center">
                        初步印象
                        <input name="HidPrimaryDiagnosesNames" type="hidden" id="HidPrimaryDiagnosesNames" />
                        <input name="HidPrimaryDiagnosesIDs" type="hidden" id="HidPrimaryDiagnosesIDs" value="@ViewBag.PRAppendInfo.FirstImpressionCodes" />
                    </td>
                    <td colspan="3" class="style9">
                        <input name="HidSymptomPendingInvestigationNames" type="hidden" id="HidSymptomPendingInvestigationNames" />
                        <input name="HidSymptomPendingInvestigationIDs" type="hidden" id="HidSymptomPendingInvestigationIDs" value="@ViewBag.PRAppendInfo.SymptomPendingInvestigationCodes" />
                        <input id="SymptomPendingInvestigation" class="easyui-validatebox textbox" type="text" disabled="disabled" value="@ViewBag.PRAppendInfo.SymptomPendingInvestigation" style="background-color:#E0E0E0;width:60%;" data-options="validtype:'length[1,100]'" />
                        <a id="btnSymptomPendingInvestigation" class="easyui-linkbutton" style="width: 70px; height: auto" onclick="openSymptomPendingInvestigation()">症状待查</a>
                    </td>
                    <td colspan="4" class="style9">
                        <input id="PrimaryDiagnoses" class="easyui-validatebox textbox" type="text" disabled="disabled" value="@ViewBag.PRAppendInfo.FirstImpression" style="background-color:#E0E0E0;width:65%;" data-options="validtype:'length[1,100]'" />
                        <a id="btnPrimaryDiagnoses" class="easyui-linkbutton" style="width: 60px; height: auto" onclick="openPrimaryDiagnoses()">诊断名</a>

                        <input id="FirstImpressionDoubt" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.FirstImpressionDoubt" style="background-color: #E0E0E0; width: 5%;" disabled="disabled" data-options="validType:'length[1,100]'" />
                        <a id="ButtonFirstImpressionDoubt" class="easyui-linkbutton" style="width: 40px; height: auto" onclick="fillFirstImpressionDoubt()"><strong>?</strong></a>
                    </td>
                </tr>
                <tr id="trPrimaryDiagnosesSupplement">
                    <td class="style8" style="color: Red; width: 7%; text-align: center">
                        初步印象其他
                    </td>
                    <td colspan="3" class="style8">
                        <span id="spanSymptomPendingInvestigationSupplement">
                            <input id="SymptomPendingInvestigationSupplement" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.SymptomPendingInvestigationSupplement" style="width:75%;" data-options="validtype:'length[1,100]'" />
                        </span>
                    </td>
                    <td colspan="4" class="style8">
                        <span id="spanPrimaryDiagnosesSupplement">
                            <input id="PrimaryDiagnosesSupplement" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRAppendInfo.FirstImpressionSupplement" style="width:80%;" data-options="validtype:'length[1,100]'" />
                        </span>
                    </td>
                </tr>

                <tr id="trJiuZhiJiLu">
                    <td colspan="8" style="height: 35px">
                        <table id="tbJiuZhiJiLu" border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: left">
                            <tr id="tr">
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                                        <tr class="style11">
                                            <td align="left" valign="middle">
                                                <b style="color: Red;">★救治记录</b>
                                                <input type="hidden" id="HidJiuZhiJiLuCount" />
                                                @*<input type="submit" name="btnrefresh" value="刷新" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnrefresh&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="btnrefresh" />*@
                                                <span id="IFRefuseTreatment">
                                                    <input id="Radio_IFRefuseTreatment_0" type="radio" name="IFRefuseTreatment" value="治疗记录" checked="checked" /><label for="Radio_IFRefuseTreatment_0">治疗记录</label>
                                                    <input id="Radio_IFRefuseTreatment_1" type="radio" name="IFRefuseTreatment" value="拒绝治疗" /><label for="Radio_IFRefuseTreatment_1">拒绝治疗</label>
                                                </span>
                                            </td>
                                        </tr>

                                        <tr id="trRescueType" class="style8">
                                            <td>
                                                <div data-options="region:'left'">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;<span>抢救类型</span>
                                                    <span id="RescueType" onclick="onClickRescueType()">
                                                        <input id="Radio_RescueType_0" type="radio" name="RescueType" value="请选择" checked="checked" /><label for="Radio_RescueType_0">请选择</label>
                                                        <input id="Radio_RescueType_1" type="radio" name="RescueType" value="心肺复苏" /><label for="Radio_RescueType_1">心肺复苏</label>
                                                        @*<input id="Radio_RescueType_2" type="radio" name="RescueType" value="中抢救" />中抢救*@
                                                    </span>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;<span id="spanCheckXFFS">
                                                        <input name="CheckBox_XFFS" type="CheckBox" id="CheckBox_XFFS" onclick="RescueXFFS();" />心肺复苏模板
                                                    </span>
                                                    &nbsp;&nbsp;
                                                    <span id="spanRescueXFFSMould">
                                                        <select class="easyui-combobox" style="width:280px;" id="RescueXFFSMould" data-options="editable: false,panelHeight: 'auto'">
                                                            <option value="">--请选择--</option>
                                                            <option value="1">未恢复自主循环（VF/无脉VT）</option>
                                                            <option value="2">未恢复自主循环（PEA/停搏）</option>
                                                            <option value="3">恢复自主循环（ROSC）</option>
                                                            <option value="4">快速性不稳定型心律失常（有脉VT）</option>
                                                        </select>
                                                    </span>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr id="trPRRescueList">
                                            <td align="center" class="style9">
                                                <div data-options="region:'center'" style="background: #fafafa;">
                                                    <table id="gridPRRescueList"></table>

                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                
                <!--诊疗操作 add2022-08-17 plq -->
                <tr id="trMeasureInfo">
                    <td style="text-align:center" class="style9">
                        诊疗操作
                    </td>
                    <td colspan="7" style="height: 35px">
                        <div id="divMeasureInfo">
                            <input id="tMeasureInfo" type="hidden" value="@ViewBag.PRInfo.MeasureInformation" />
                            <input id="tMeasureInformation" class="easyui-textbox" type="text" value="@ViewBag.PRInfo.MeasureInformation" style="width: 90%; height:60px" data-options="prompt:'诊疗操作(1000字以内,含标点)',multiline:true,validType:'length[0,1000]',onChange:function (newValue, oldValue) { }" />
                        </div>
                    </td>
                </tr>
            </table>
            <table style="width: 100%; text-align: left" id="tbxffs">
                <tr id="Tr33" class="style11">
                    <td style="width: 9%; text-align: center">
                        <b>★心肺复苏成功申报</b>
                    </td>
                    <td style="width: 90%" colspan="7">
                        <input type="hidden" name="HidHuJiuShiJian" id="HidHuJiuShiJian" />
                        <input name="CPRSelect" type="CheckBox" id="CPRSelect" value="ROSC" onclick="HidXinFeiFuShu();" /><label for="CPRSelect_0">ROSC</label>
                        @*<span id="CPRSelect" onclick="HidXinFeiFuShu();">
                                <input id="CPRSelect_0" type="radio" name="CPRSelect" value="未做" checked="checked" /><label for="CPRSelect_0">未做</label>
                                <input id="CPRSelect_1" type="radio" name="CPRSelect" value="ROSC" /><label for="CPRSelect_1">ROSC</label>
                                <input id="CPRSelect_2" type="radio" name="CPRSelect" value="无变化" /><label for="CPRSelect_2">无变化</label>
                            </span>*@
                    </td>
                </tr>
                <tr id="Tr34">
                    <td class="style9" style="width: 9%; text-align: center;color: Red;">
                        发病地点
                    </td>
                    <td class="style9" style="width:18%">
                        <select class="easyui-combobox" id="AttackPlace" style="width:108px;" data-options="editable:false,panelHeight:'auto'"></select>
                    </td>
                    <td class="style9" style="width: 9%; text-align: center; color: Red;">
                        目击者
                    </td>
                    <td class="style9" style="width:15%">
                        <span id="Witness">
                            <input id="Witness_0" type="radio" name="Witness" value="有" /><label for="Witness_0">有</label>
                            <input id="Witness_1" type="radio" name="Witness" value="无" /><label for="Witness_1">无</label>
                        </span>
                    </td>
                    <td class="style9" style="width: 9%; text-align: center; color: Red;">
                        车到前CPR
                    </td>
                    <td class="style9" style="width:16%">
                        <span id="CarToBeforeCPR">
                            <input id="CarToBeforeCPR_0" type="radio" name="CarToBeforeCPR" value="做" /><label for="CarToBeforeCPR_0">做</label>
                            <input id="CarToBeforeCPR_1" type="radio" name="CarToBeforeCPR" value="未做" /><label for="CarToBeforeCPR_1">未做</label>
                        </span>
                    </td>
                    <td class="style9" style="width: 12%; text-align: center; color: Red;">
                        车到前除颤/同步电复律
                    </td>
                    <td class="style9" style="width:14%">
                        <span id="CarToBeforeDefibrillation">
                            <input id="CarToBeforeDefibrillation_0" type="radio" name="CarToBeforeDefibrillation" value="做" /><label for="CarToBeforeDefibrillation_0">做</label>
                            <input id="CarToBeforeDefibrillation_1" type="radio" name="CarToBeforeDefibrillation" value="未做" /><label for="CarToBeforeDefibrillation_1">未做</label>
                        </span>
                    </td>
                </tr>
                <tr id="Tr35">
                    <td class="style8" style="text-align: center; color: Red;">
                        到达现场时间
                    </td>
                    <td class="style8">
                        <input id="CPRArriveSceneTime" class="easyui-datetimebox" style="width:150px;" data-options="" />

                    </td>
                    <td class="style8" style="text-align: center; color: Red;">
                        胸外按压
                    </td>
                    <td class="style8">
                        <span id="ChestCompression">
                            <input id="ChestCompression_0" type="radio" name="ChestCompression" value="未做" /><label for="ChestCompression_0">未做</label>
                            <input id="ChestCompression_1" type="radio" name="ChestCompression" value="做" /><label for="ChestCompression_1">做</label>
                        </span>
                    </td>
                    <td class="style8" style="text-align: center">
                        开始胸外按压时间
                    </td>
                    <td class="style8">
                        <input id="StartChestCompressionTime" class="easyui-datetimebox" style="width:150px;" />

                    </td>
                    <td class="style8" style="text-align: center; color: Red;">
                        复苏前心电图诊断
                    </td>
                    <td class="style8">
                        <select class="easyui-combobox" id="BeforeResuscitationECGDiagnosis" style="width:108px;" data-options="editable:false,panelHeight:'auto'"></select>
                    </td>
                </tr>
                <tr id="Tr36">
                    <td class="style9" style="text-align: center; color: Red;">
                        复苏后心电图诊断
                    </td>
                    <td class="style9">
                        <input id="AfterResuscitationECGDiagnosis" class="easyui-validatebox textbox" value="@ViewBag.PRCPRInfo.AfterResuscitationECGDiagnosis" type="text" style="width:145px;" data-options="validType:'length[1,50]'" />
                    </td>
                    <td class="style9" style="text-align: center; color: Red;">
                        除颤/同步电复律
                    </td>
                    <td class="style9">
                        <span id="Defibrillation">
                            <input id="Defibrillation_0" type="radio" name="Defibrillation" value="未做" /><label for="Defibrillation_0">未做</label>
                            <input id="Defibrillation_1" type="radio" name="Defibrillation" value="做" /><label for="Defibrillation_1">做</label>
                        </span>
                    </td>
                    <td class="style9" style="text-align: center">
                        首次除颤时间
                    </td>
                    <td class="style9">
                        <input id="FirstDefibrillationTime" class="easyui-datetimebox" style="width:150px;" data-options="onChange:function (newValue, oldValue) { SelectTimeChange(); }" />

                    </td>
                    <td class="style9" style="text-align: center">
                        间隔时间
                    </td>
                    <td class="style9">
                        <input id="IntervalTime" class="easyui-validatebox textbox" value="" type="text" disabled="disabled" style="background-color: #E0E0E0; width: 40%;" data-options="validType:'length[1,50]'" />
                        分
                    </td>
                </tr>
                <tr id="Tr37">
                    <td class="style8" style="text-align: center; color: Red;">
                        复苏后BP
                    </td>
                    <td class="style8">
                        <input id="AfterResuscitationBP" class="easyui-validatebox textbox" value="@ViewBag.PRCPRInfo.AfterResuscitationBP" type="text" style="width:100px;" data-options="validType:'length[1,10]'" />mmHg
                    </td>
                    <td class="style8" style="text-align: center; color: Red;">
                        复苏后SaO2
                    </td>
                    <td class="style8">
                        <input id="AfterResuscitationSaO2" class="easyui-validatebox textbox" value="@ViewBag.PRCPRInfo.AfterResuscitationSaO2" type="text" style="width:100px;" data-options="validType:'length[1,10]'" />%
                    </td>
                    <td class="style8" style="text-align: center; color: Red;">
                        心脏骤停可能原因
                    </td>
                    <td class="style8">
                        <select class="easyui-combobox" id="CardiacArrestReason" style="width:108px;" data-options="editable:false,panelHeight:'auto'"></select>
                    </td>
                    <td class="style8" id="tdCardiacArrestReasonSupplement" style="text-align: center">
                        心脏骤停补充说明
                    </td>
                    <td class="style8">
                        <input id="CardiacArrestReasonSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRCPRInfo.CardiacArrestReasonSupplement" type="text" style="width: 90%;" data-options="validType:'length[1,50]'" />

                    </td>
                </tr>
                <tr id="Tr38">
                    <td class="style9" style="text-align: center; color: Red;">
                        颈A搏动出现时间
                    </td>
                    <td class="style9">
                        <input id="PulsationAppearTime" class="easyui-datetimebox" style="width:150px;" />

                    </td>
                    <td class="style9" style="text-align: center">
                        自主呼吸出现时间
                    </td>
                    <td class="style9">
                        <input id="BreatheAppearTime" class="easyui-datetimebox" style="width:150px;" />

                    </td>
                    <td class="style9" style="text-align: center; color: Red;">
                        目击下心跳呼吸骤停
                    </td>
                    <td class="style9">
                        <span id="WitnessHeartbeatBreatheArrest">
                            <input id="WitnessHeartbeatBreatheArrest_0" type="radio" name="WitnessHeartbeatBreatheArrest" value="是" /><label for="WitnessHeartbeatBreatheArrest_0">是</label>
                            <input id="WitnessHeartbeatBreatheArrest_1" type="radio" name="WitnessHeartbeatBreatheArrest" value="否" /><label for="WitnessHeartbeatBreatheArrest_1">否</label>
                        </span>
                    </td>
                    <td class="style9" style="text-align: center; color: Red;">
                        是否入院
                    </td>
                    <td class="style9">
                        <span id="IFAdmittedToHospital">
                            <input id="IFAdmittedToHospital_0" type="radio" name="IFAdmittedToHospital" value="入院" /><label for="IFAdmittedToHospital_0">入院</label>
                            <input id="IFAdmittedToHospital_1" type="radio" name="IFAdmittedToHospital" value="院前死亡" /><label for="IFAdmittedToHospital_1">院前死亡</label>
                        </span>
                    </td>
                </tr>
                <tr id="Tr39">
                    <td class="style8" style="text-align: center; ">
                        <span id="lblSfcy">是否出院</span>
                    </td>
                    <td class="style8" colspan="3">
                        <input type="hidden" id="hidIFLeaveHospital" value="@ViewBag.PRCPRInfo.IFLeaveHospital" />
                        <span id="IFLeaveHospital">
                            <input id="IFLeaveHospital_0" type="radio" name="IFLeaveHospital" value="出院" /><label for="IFLeaveHospital_0">出院</label>
                            <input id="IFLeaveHospital_1" type="radio" name="IFLeaveHospital" value="医院内死亡<=24h" /><label for="IFLeaveHospital_1">医院内死亡<=24h</label>
                            <input id="IFLeaveHospital_2" type="radio" name="IFLeaveHospital" value="医院内死亡<=2W" /><label for="IFLeaveHospital_2">医院内死亡<=2W</label>

                        </span>
                    </td>
                    <td class="style8" style="text-align: center; ">
                        <span id="lblCyrq">复苏后出院日期</span>
                    </td>
                    <td class="style8">
                        <input id="LeaveHospitalDate" class="easyui-datebox" style="width: 108px;" />

                    </td>
                    <td class="style8"></td>
                    <td class="style8"></td>
                </tr>
                <tr id="Tr40">
                    <td class="style9" style="text-align: center; ">
                        <span id="lblCPC">出院时CPC数值</span>
                    </td>
                    <td class="style9">
                        <select class="easyui-combobox" id="LeaveHospitalCPC" style="width:108px;" data-options="editable:false,panelHeight:'auto',panelWidth: 550">
                            <option value="">--请选择--</option>
                            <option value="1">CPC1.神经功能良好：神志清醒，反应灵敏，能正常工作，可能有轻微的神经或心理损伤</option>
                            <option value="2">CPC2.中度脑残疾：神志清醒，能独立完成日常生活活动。能在有保护措施的环境下工作</option>
                            <option value="3">CPC3.重度脑残疾：神志清醒，由于大脑功能受损需要在别人的帮助下才能完成日常生活活动，这类患者也许能够走动，严重者可能是严重痴呆或瘫痪</option>
                            <option value="4">CPC4.昏迷或植物状态：没有脑死亡征象的任何程度的昏迷。没有意识，即使醒过来（植物人状态）也不能与周围环境交流；可能有自发的睁开眼、睡觉或清醒周期。大脑无反应</option>
                            <option value="5">CPC5.脑死亡：呼吸暂停，反射消失，脑电图呈电静息等</option>

                        </select>级
                    </td>
                    <td class="style9" style="text-align: center">
                        <span id="lblHsjg">科教部核实结果</span>
                    </td>
                    <td class="style9">
                        <select class="easyui-combobox" id="VerifyResults" style="width:108px;" data-options="editable:false,panelHeight:'auto'">
                            <option value="">--请选择--</option>
                            <option value="未复苏成功">未复苏成功</option>
                            <option value="院前复苏成功">院前复苏成功</option>
                            <option value="出院">出院</option>

                        </select>
                    </td>
                    <td class="style9" style="text-align: center">
                        <span id="lblHsry">核实人员</span>
                    </td>
                    <td class="style9">
                        <input id="VerifyPerson" class="easyui-validatebox textbox" type="text" value="@ViewBag.PRCPRInfo.VerifyPerson" style="width:100px;" data-options="validType:'length[1,10]'" />
                    </td>
                    <td class="style9" style="text-align: center">
                        <span id="lblHssj">核实时间</span>
                    </td>
                    <td class="style9">
                        <input id="VerifyDate" class="easyui-datebox" style="width:108px;" />

                    </td>
                </tr>
                <tr id="TrIllState" class="style11">
                    <td class="style8" style="color: Red;text-align: center">
                        病情分类
                    </td>
                    <td class="style8">
                        <select class="easyui-combobox" id="IllState" style="width:108px;"></select>
                    </td>
                    <td class="style8" style="color: Red; text-align: center">
                        病情预报
                    </td>
                    <td class="style8">
                        <select class="easyui-combobox" id="IllStateReport" style="width:108px;"></select>
                    </td>
                    <td class="style8" style="text-align: center">
                        <span id="spanDeathCase">呼吸心跳停止</span>
                    </td>
                    <td class="style8">
                        <select class="easyui-combobox" id="DeathCase" style="width:108px;"></select>
                    </td>
                    <td class="style8" style="text-align: center">
                        <span id="spanDeathCertificate">死亡证明</span>
                    </td>
                    <td class="style8">
                        <select class="easyui-combobox" id="DeathCertificate" style="width:108px;"></select>
                    </td>
                </tr>
                <tr id="trFirstAidEffect">
                    <td class="style9" style="color: Red; text-align: center">
                        急救效果
                    </td>
                    <td class="style9">
                        <select class="easyui-combobox" id="FirstAidEffect" style="width:108px;"></select>
                    </td>
                    <td class="style9" style="color: Red; text-align: center;">
                        重大突发事件
                    </td>
                    <td class="style9">
                        <select class="easyui-combobox" id="MajorEmergencies" style="width:108px;"></select>
                    </td>
                    <td class="style9" style="color: Red; text-align: center;">
                        病家合作度
                    </td>
                    <td class="style9">
                        <select class="easyui-combobox" id="DiseaseCooperation" style="width:108px;"></select>
                    </td>
                    <td class="style9" style="color: Red; text-align: center;">
                        <label id="lblCureCooperateBuChong">补充说明</label>
                    </td>
                    <td class="style9">
                        <span id="tNotCooperationExplain">
                            <input id="DiseaseNotCooperationSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.DiseaseNotCooperationSupplement" type="text" style="width:90%;" data-options="validType:'length[1,50]'" />
                        </span>
                    </td>
                </tr>
                <tr id="trRemark">
                    <td class="style9" style="color: Red; text-align: center">
                        <span id="spanFormedConsent">告知签字</span>

                    </td>
                    <td class="style9">
                        <span id="IFFormedConsent">
                            <input id="Radio_IFFormedConsent_0" type="radio" name="IFFormedConsent" value="True" /><label for="Radio_IFFormedConsent_0">是</label>
                            <input id="Radio_IFFormedConsent_1" type="radio" name="IFFormedConsent" value="False" /><label for="Radio_IFFormedConsent_1">否</label>
                        </span>
                    </td>
                    <td class="style9" style="width: 7%; text-align: center">
                        <span id="spanRemark">病历备注</span>
                    </td>
                    <td class="style9" colspan="5">
                        <input id="Remark" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.Remark" type="text" style="width:87%;" data-options="validType:'length[1,500]'" />
                    </td>
                </tr>
                <tr id="trDoctorFollowUp">
                    <td class="style8" style="text-align: center">
                        个人回访
                    </td>
                    <td class="style8" colspan="7">
                        <select class="easyui-combobox" id="DoctorFollowUpReason" style="width:108px;"></select>
                        补充<input id="DoctorFollowUp" class="easyui-validatebox textbox" value="@ViewBag.PRCPRInfo.DoctorFollowUp" type="text" style="width:79%;" data-options="validType:'length[1,100]'" />
                        &nbsp;<a class="easyui-linkbutton" id="btnFollowUp" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveFollowUp()">个人回访</a>
                    </td>
                </tr>
                <tr id="trFollowUp">
                    <td class="style8" style="text-align: center">
                        中心回访
                    </td>
                    <td class="style8" colspan="7">
                        <select class="easyui-combobox" id="CenterFollowUp" style="width:108px;"></select>
                        补充<input id="CenterFollowUpSupplement" class="easyui-validatebox textbox" value="@ViewBag.PRInfo.CenterFollowUpSupplement" type="text" style="width:79%;" data-options="validType:'length[1,100]'" />
                        &nbsp;<a class="easyui-linkbutton" id="btnCenterFollowUp" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveFollowUp(-2)">中心回访</a>
                    </td>
                </tr>
            </table>
            <div style="height:22px">
            </div>
            <div id="divshenhe" style="width: 100%;">
                <div class="easyui-panel" title="心肺复苏审核" style="width: 100%;" data-options="collapsible:true">
                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%" id="tbShenHe">
                        <tr>
                            <td align="center" valign="top" style="width:7%">
                                中心审核
                            </td>
                            <td align="left" style="width: 45%; vertical-align: top">
                                <span id="CenterAuditResult" onclick="HidCenterAuditResult()">
                                    <input id="Radio_CenterAuditResult_0" type="radio" name="CenterAuditResult" value="通过" /><label for="Radio_CenterAuditResult_0">通过</label>
                                    <input id="Radio_CenterAuditResult_1" type="radio" name="CenterAuditResult" value="未通过" /><label for="Radio_CenterAuditResult_1">未通过</label>
                                    <input id="Radio_CenterAuditResult_2" type="radio" name="CenterAuditResult" value="待定" /><label for="Radio_CenterAuditResult_2">待定</label>
                                </span>
                                &nbsp;
                                <br />
                                <div id="divCenterNotThroughReason">
                                    <input id="tCenterNotThroughReasons" type="hidden" value="@ViewBag.PRCPRInfo.CenterNotThroughReason" />
                                    <input id="tCenterNotThroughReason" class="easyui-textbox" value="@ViewBag.PRCPRInfo.CenterNotThroughReason" style="width: 98%; height:60px" data-options="prompt:'未通过原因(1000字以内,含标点)',multiline:true,validType:'length[1,1000]',onChange:function (newvalue, oldvalue) { onchangeTCenterNotThroughReason(); }" />
                                </div>
                                <label id="lblCenterAudit" style="color:#FF0066"></label>
                            </td>
                            <td align="center" valign="top" style="width:5%"></td>
                            <td style="width:43%;text-align:left;vertical-align:top"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="right">
                                <a class="easyui-linkbutton" id="btnCenterAudit" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveAuditCPR()">中心审核</a>
                                &nbsp;&nbsp;
                            </td>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="divchoucha" style="width: 100%;">
                <div class="easyui-panel" title="病历抽查" style="width: 100%;" data-options="collapsible:true">
                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%" id="tbchoucha">
                        <tr>
                            <td align="center" valign="top" style="width:7%">
                                分组抽查
                            </td>
                            <td align="left" style="width: 30%; vertical-align: top">
                                <span id="SubCenterSpotChecksResult">
                                    @Html.Raw(ViewData["SubCenterSpotChecksResult"])
                                </span>
                                <span id="spanSubCenterSpotChecksUnqualifiedReason">
                                    <select class="easyui-combobox" id="SubCenterSpotChecksUnqualifiedReason" style="width:150px;"></select>
                                </span>
                            </td>
                            <td align="center" valign="top" style="width:7%">
                                中心抽查
                            </td>
                            <td style="text-align:left;vertical-align:top;width:16%">
                                <span id="CenterSpotChecksResult">
                                    @Html.Raw(ViewData["CenterSpotChecksResult"])
                                </span>
                            </td>
                            <td style="width:13%" align="left">
                                <span id="spanCenterSpotChecksUnqualifiedReason">
                                    <select class="easyui-combobox" id="CenterSpotChecksUnqualifiedReason" style="width: 150px;"></select>
                                </span>
                            </td>
                            <td style="width:13%" align="left">
                                <input name="CheckBox_MedicalHistoryWritingProgress" type="CheckBox" value="True" id="CheckBox_MedicalHistoryWritingProgress" />病史书写进步
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="left">
                                <div id="divSubCenterSpotChecksRmark">
                                    <input id="tSubCenterSpotChecksRmarks" type="hidden" value="@ViewBag.PRInfo.SubCenterSpotChecksRmark" />
                                    <input id="tSubCenterSpotChecksRmark" class="easyui-textbox" type="text" value="@ViewBag.PRInfo.SubCenterSpotChecksRmark" style="width: 98%; height:60px" data-options="prompt:'备注(1000字以内,含标点)',multiline:true,validType:'length[0,1000]',onChange:function (newValue, oldValue) { tsubCenterSpotChecksRmark(); }" />
                                </div>
                                <label id="lblSubCenterSpotChecks" style="color:#FF0066"></label>
                            </td>
                            <td></td>
                            <td colspan="3">
                                <div id="divCenterSpotChecksRmark">
                                    <input id="tCenterSpotChecksRmarks" type="hidden" value="@ViewBag.PRInfo.CenterSpotChecksRmark" />
                                    <input id="tCenterSpotChecksRmark" class="easyui-textbox" type="text" value="@ViewBag.PRInfo.CenterSpotChecksRmark" style="width: 99%; height:60px" data-options="prompt:'备注(1000字以内,含标点)',multiline:true,validType:'length[0,1000]',onChange:function (newValue, oldValue) { tcenterSpotChecksRmark(); }" />
                                </div>
                                <label id="lblCenterSpotChecks" style="color:#FF0066"></label>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="right">
                                <a class="easyui-linkbutton" id="btnSubCenterSpotChecks" style="height: 21px" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveSpotChecks(-1)">分组抽查</a>
                                &nbsp;&nbsp;
                                <a class="easyui-linkbutton" id="btnSubCenterSpotCheckCancel" style="height: 21px" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="SpotChecksCancel(-1)">清空</a>&nbsp;&nbsp;
                            </td>
                            <td></td>
                            <td>
                                通知参加病历小讲课：&nbsp;&nbsp;&nbsp;&nbsp;<span id="NoticeAttendNursingLectures">
                                    <input id="Radio_NoticeAttendNursingLectures_0" type="radio" name="NoticeAttendNursingLectures" value="True" /><label for="Radio_NoticeAttendNursingLectures_0">是</label>
                                    <input id="Radio_NoticeAttendNursingLectures_1" type="radio" name="NoticeAttendNursingLectures" value="False" /><label for="Radio_NoticeAttendNursingLectures_1">否</label>
                                </span>
                            </td>
                            <td colspan="2" id="tdActualAttendNursingLectures">
                                &nbsp;实际参加病历小讲课：&nbsp;&nbsp;&nbsp;&nbsp;<span id="ActualAttendNursingLectures">
                                    @Html.Raw(ViewData["ActualAttendNursingLectures"])
                                </span>
                            </td>
                        </tr>
                        <tr id="trFillNoticeAttendNursingLectures">
                            <td></td>
                            <td align="left"></td>
                            <td></td>
                            <td>
                                补通知参加病历小讲课：&nbsp;&nbsp;<span id="FillNoticeAttendNursingLectures">
                                    <input id="Radio_FillNoticeAttendNursingLectures_0" type="radio" name="FillNoticeAttendNursingLectures" value="True" /><label for="Radio_FillNoticeAttendNursingLectures_0">是</label>
                                    <input id="Radio_FillNoticeAttendNursingLectures_1" type="radio" name="FillNoticeAttendNursingLectures" value="False" /><label for="Radio_FillNoticeAttendNursingLectures_1">否</label>
                                </span>
                            </td>
                            <td colspan="2" id="tdFillActualAttendNursingLectures">
                                &nbsp;补实际参加病历小讲课：&nbsp;&nbsp;<span id="FillActualAttendNursingLectures">
                                    @Html.Raw(ViewData["FillActualAttendNursingLectures"])
                                </span>
                            </td>
                        </tr>
                        <tr id="trFill2NoticeAttendNursingLectures">
                            <td></td>
                            <td align="left"></td>
                            <td></td>
                            <td>
                                再补通知参加病历小讲课：<span id="Fill2NoticeAttendNursingLectures">
                                    <input id="Radio_Fill2NoticeAttendNursingLectures_0" type="radio" name="Fill2NoticeAttendNursingLectures" value="True" /><label for="Radio_Fill2NoticeAttendNursingLectures_0">是</label>
                                    <input id="Radio_Fill2NoticeAttendNursingLectures_1" type="radio" name="Fill2NoticeAttendNursingLectures" value="False" /><label for="Radio_Fill2NoticeAttendNursingLectures_1">否</label>
                                </span>
                            </td>
                            <td colspan="2" id="tdFill2ActualAttendNursingLectures">
                                &nbsp;再补实际参加病历小讲课：<span id="Fill2ActualAttendNursingLectures">
                                    @Html.Raw(ViewData["Fill2ActualAttendNursingLectures"])
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="right">
                                @*<a class="easyui-linkbutton" id="btnSubCenterSpotChecks" style="height: 21px" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveSpotChecks(-1)">分中心抽查</a>
                                    &nbsp;&nbsp;*@
                            </td>
                            <td></td>
                            <td align="right" colspan="3">
                                <a class="easyui-linkbutton" id="btnCenterSpotChecks" style="height: 21px" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveSpotChecks(-2)">中心抽查</a>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <a class="easyui-linkbutton" id="btnCenterSpotCheckCancel" style="height: 21px" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="SpotChecksCancel(-2)">清空</a>&nbsp;&nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 33px;">
                <tr>
                    <td align="center" style="height: 10px">
                        <span id="lblAlert" style="color:Red;"></span>
                    </td>
                </tr>
                <tr id="trSaveSubmit">
                    <td colspan="2" align="center" style="height: 10px">
                        <a class="easyui-linkbutton" id="btnSave" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SavePatientRecord(0)">暂  存</a>
                        &nbsp;&nbsp;
                        @*<a class="easyui-linkbutton" id="btnPrint" data-options="iconCls:'icon-print'" href="javascript:void(0)" onclick="openPrint()">预 览</a>
                            &nbsp;&nbsp;*@
                        <a class="easyui-linkbutton" id="btnSubmit" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="SubmitPatientRecord(1)">提交并关闭(提交后不允许修改)</a>
                        <input name="HidSubmitLogo" type="hidden" id="HidSubmitLogo" style="width: 1px" />
                    </td>
                </tr>
                <tr id="trCenterAudit">
                    <td colspan="2" align="center" style="height: 10px">
                        @*<a class="easyui-linkbutton" id="btnCenterAudit" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveAuditCPR()">中心审核</a>*@

                    </td>
                </tr>
                <tr id="trSubCenterSpotChecks">
                    <td colspan="2" align="center" style="height: 10px">
                        @*<a class="easyui-linkbutton" id="btnSubCenterSpotChecks" data-options="iconCls:'icon-save'" href="javascript:void(0)" onclick="SaveSpotChecks(-1)">分中心抽查</a>*@

                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
@Html.Partial("~/Areas/PR/Views/Medical/SelectECGImpression.cshtml")
@Html.Partial("~/Areas/PR/Views/Medical/SelectPrimaryDiagnoses.cshtml")
@Html.Partial("~/Areas/PR/Views/Medical/AddPatientRecordRescue.cshtml")
@Html.Partial("~/Areas/PR/Views/Medical/_SymptomPendingInvestigation.cshtml")
@Html.Partial("~/Areas/PR/Views/Medical/_SelectECGImpressionRetestI.cshtml")
@Html.Partial("~/Areas/PR/Views/Medical/_SelectECGImpressionRetestII.cshtml")
